<ImportExportXml version="4.0.0.0" languagecode="1033" generatedBy="OnPremise">
  <Entities>
    <Entity>
      <Name LocalizedName="TestEntity" OriginalName="">CA_TestEntity</Name>
      <ObjectTypeCode>10022</ObjectTypeCode>
      <EntityInfo>
        <entity Name="CA_TestEntity">
          <HasRelatedNotes>True</HasRelatedNotes>
          <HasRelatedActivities>True</HasRelatedActivities>
          <ObjectTypeCode>10022</ObjectTypeCode>
          <CollectionName>CA_TestEntitys</CollectionName>
          <LogicalCollectionName>ca_TestEntitys</LogicalCollectionName>
          <BaseTableName>CA_TestEntityBase</BaseTableName>
          <WorkflowEventMask>-1</WorkflowEventMask>
          <IsCustomizable>1</IsCustomizable>
          <IsMappable>1</IsMappable>
          <IsImportable>1</IsImportable>
          <IsDuplicateCheckSupported>1</IsDuplicateCheckSupported>
          <OwnershipTypeMask>UserOwned</OwnershipTypeMask>
          <IsAudited>1</IsAudited>
          <EntityMask>ActivityPointer</EntityMask>
          <IsReplicated>1</IsReplicated>
          <IsReplicationUserFiltered>1</IsReplicationUserFiltered>
          <IsCustomEntity>1</IsCustomEntity>
          <IsValidForAdvancedFind>1</IsValidForAdvancedFind>
          <ExtensionTableName>CA_TestEntityExtensionBase</ExtensionTableName>
          <ReportViewName>FilteredCA_TestEntity</ReportViewName>
          <IsRenameable>1</IsRenameable>
          <CanTriggerWorkflow>1</CanTriggerWorkflow>
          <CanBeChildInCustomRelationship>1</CanBeChildInCustomRelationship>
          <CanBeInCustomEntityAssociation>1</CanBeInCustomEntityAssociation>
          <CanBeInCustomReflexiveRelationship>1</CanBeInCustomReflexiveRelationship>
          <IsMailMergeEnabled>1</IsMailMergeEnabled>
          <EntityClassName>Microsoft.Crm.Entities.CustomBusinessEntity</EntityClassName>
          <EntityAssembly>Microsoft.Crm.Entities</EntityAssembly>
          <ServiceClassName>Microsoft.Crm.ObjectModel.CustomBusinessEntityService</ServiceClassName>
          <ServiceAssembly>Microsoft.Crm.ObjectModel</ServiceAssembly>
          <WorkflowSupport>15</WorkflowSupport>
          <LocalizedNames>
            <LocalizedName description="TestEntity" languagecode="1033" />
          </LocalizedNames>
          <LocalizedCollectionNames>
            <LocalizedCollectionName description="TestEntitys" languagecode="1033" />
          </LocalizedCollectionNames>
          <Descriptions>
            <Description description="" languagecode="1033" />
          </Descriptions>
          <attributes>
            <attribute PhysicalName="CA_ACTAppealCode">
              <Type>nvarchar</Type>
              <Length>30</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-11000000001e</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format>text</Format>
              <MaxLength>15</MaxLength>
              <displaynames>
                <displayname description="ACT Appeal Code" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_additionalamountsought_tc">
              <Type>decimal</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000016</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <MinValue>0</MinValue>
              <MaxValue>1000000000</MaxValue>
              <Accuracy>2</Accuracy>
              <displaynames>
                <displayname description="Additional Amount Sought" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_AdditionalAreaformonitoringaction">
              <Type>nvarchar</Type>
              <Length>600</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-11000000001e</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format>textarea</Format>
              <MaxLength>300</MaxLength>
              <displaynames>
                <displayname description="Additional Area for monitoring/action" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_ApplicationofLessonslearntfrompreviouswor">
              <Type>nvarchar</Type>
              <Length>1000</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-11000000001e</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format>textarea</Format>
              <MaxLength>500</MaxLength>
              <displaynames>
                <displayname description="Application of Lessons learnt from previous work" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_availableamount_tc">
              <Type>decimal</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000016</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <MinValue>0</MinValue>
              <MaxValue>1000000000</MaxValue>
              <Accuracy>2</Accuracy>
              <displaynames>
                <displayname description="Available Amount" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_BankingAvailability">
              <Type>picklist</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000030</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>-1</AppDefaultValue>
              <displaynames>
                <displayname description="Banking Availability" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_bankingavailabilityName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_BankingAvailability</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_ca_TestEntitybudget">
              <Type>int</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000019</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format />
              <MinValue>-2147483648</MinValue>
              <MaxValue>2147483647</MaxValue>
              <displaynames>
                <displayname description="TestEntity Budget" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_Changesystemsstructurespolicy">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000013</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>0</AppDefaultValue>
              <options>
                <option value="0">
                  <labels>
                    <label description="No" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Yes" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Change systems, structures, policy" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_changesystemsstructurespolicyName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_Changesystemsstructurespolicy</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_commitments_tc">
              <Type>decimal</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000016</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <MinValue>0</MinValue>
              <MaxValue>1000000000</MaxValue>
              <Accuracy>2</Accuracy>
              <displaynames>
                <displayname description="Commitments" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_commitmentsinprinciple_tc">
              <Type>decimal</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000016</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <MinValue>0</MinValue>
              <MaxValue>1000000000</MaxValue>
              <Accuracy>2</Accuracy>
              <displaynames>
                <displayname description="Commitments in Principle" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_DescriptionofActionorMonitoring">
              <Type>nvarchar</Type>
              <Length>1000</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-11000000001e</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format>textarea</Format>
              <MaxLength>500</MaxLength>
              <displaynames>
                <displayname description="Description of Action or Monitoring" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_DisasteraffectedTargetGroup">
              <Type>picklist</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000030</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>recommended</RequiredLevel>
              <AppDefaultValue>-1</AppDefaultValue>
              <options>
                <option value="1">
                  <labels>
                    <label description="Disaster Affected &lt;3 Months" languagecode="1033" />
                  </labels>
                </option>
                <option value="2">
                  <labels>
                    <label description="Disaster Affected &gt;3 Months &lt;1 Year" languagecode="1033" />
                  </labels>
                </option>
                <option value="3">
                  <labels>
                    <label description="Disaster Affected &gt;1 Year &lt;3 Years" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Disaster affected Target Group" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_disasteraffectedtargetgroupName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_DisasteraffectedTargetGroup</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_estimatedpartnerannualincome_tc">
              <Type>decimal</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000016</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <MinValue>0</MinValue>
              <MaxValue>1000000000</MaxValue>
              <Accuracy>2</Accuracy>
              <displaynames>
                <displayname description="Estimated Partner Annual Income(Prime Currency)" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_Exposethescandalofpoverty">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000013</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>0</AppDefaultValue>
              <options>
                <option value="0">
                  <labels>
                    <label description="No" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Yes" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Expose the scandal of poverty" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_exposethescandalofpovertyName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_Exposethescandalofpoverty</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_FlagforScaleup">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000013</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>0</AppDefaultValue>
              <options>
                <option value="0">
                  <labels>
                    <label description="No" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Yes" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Flag for Scale up" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_flagforscaleupName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_FlagforScaleup</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_GrantAmount">
              <Type>decimal</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000016</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="Grant Amount in Approval Currency" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <MinValue>0</MinValue>
              <MaxValue>1000000000</MaxValue>
              <Accuracy>2</Accuracy>
              <displaynames>
                <displayname description="Grant Amount" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_grants_tc">
              <Type>decimal</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000016</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <MinValue>0</MinValue>
              <MaxValue>1000000000</MaxValue>
              <Accuracy>2</Accuracy>
              <displaynames>
                <displayname description="Total Grants" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_HelperField">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000013</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>0</AppDefaultValue>
              <options>
                <option value="0">
                  <labels>
                    <label description="No" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Yes" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Helper Field" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_helperfieldName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_HelperField</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_Howdoesitcontributetoworkofprogramme">
              <Type>nvarchar</Type>
              <Length>1000</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-11000000001e</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format>textarea</Format>
              <MaxLength>500</MaxLength>
              <displaynames>
                <displayname description="How does it contribute to work of programme" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_Howmanymonitoringassessmentsperyear">
              <Type>picklist</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000030</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>required</RequiredLevel>
              <AppDefaultValue>-1</AppDefaultValue>
              <options>
                <option value="1">
                  <labels>
                    <label description="1" languagecode="1033" />
                  </labels>
                </option>
                <option value="2">
                  <labels>
                    <label description="2" languagecode="1033" />
                  </labels>
                </option>
                <option value="3">
                  <labels>
                    <label description="3" languagecode="1033" />
                  </labels>
                </option>
                <option value="4">
                  <labels>
                    <label description="4" languagecode="1033" />
                  </labels>
                </option>
                <option value="5">
                  <labels>
                    <label description="5" languagecode="1033" />
                  </labels>
                </option>
                <option value="6">
                  <labels>
                    <label description="6" languagecode="1033" />
                  </labels>
                </option>
                <option value="7">
                  <labels>
                    <label description="7" languagecode="1033" />
                  </labels>
                </option>
                <option value="8">
                  <labels>
                    <label description="8" languagecode="1033" />
                  </labels>
                </option>
                <option value="9">
                  <labels>
                    <label description="9" languagecode="1033" />
                  </labels>
                </option>
                <option value="10">
                  <labels>
                    <label description="10" languagecode="1033" />
                  </labels>
                </option>
                <option value="11">
                  <labels>
                    <label description="11" languagecode="1033" />
                  </labels>
                </option>
                <option value="12">
                  <labels>
                    <label description="12" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="How many monitoring assessments per year?" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_howmanymonitoringassessmentsperyearName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_Howmanymonitoringassessmentsperyear</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_HowmanymonitoringvisitswillCAcarryoutper">
              <Type>picklist</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000030</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>required</RequiredLevel>
              <AppDefaultValue>-1</AppDefaultValue>
              <options>
                <option value="1">
                  <labels>
                    <label description="1" languagecode="1033" />
                  </labels>
                </option>
                <option value="2">
                  <labels>
                    <label description="2" languagecode="1033" />
                  </labels>
                </option>
                <option value="3">
                  <labels>
                    <label description="3" languagecode="1033" />
                  </labels>
                </option>
                <option value="4">
                  <labels>
                    <label description="4" languagecode="1033" />
                  </labels>
                </option>
                <option value="5">
                  <labels>
                    <label description="5" languagecode="1033" />
                  </labels>
                </option>
                <option value="6">
                  <labels>
                    <label description="6" languagecode="1033" />
                  </labels>
                </option>
                <option value="7">
                  <labels>
                    <label description="7" languagecode="1033" />
                  </labels>
                </option>
                <option value="8">
                  <labels>
                    <label description="8" languagecode="1033" />
                  </labels>
                </option>
                <option value="9">
                  <labels>
                    <label description="9" languagecode="1033" />
                  </labels>
                </option>
                <option value="10">
                  <labels>
                    <label description="10" languagecode="1033" />
                  </labels>
                </option>
                <option value="11">
                  <labels>
                    <label description="11" languagecode="1033" />
                  </labels>
                </option>
                <option value="12">
                  <labels>
                    <label description="12" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="How many monitoring visits will CA carry out per" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_howmanymonitoringvisitswillcacarryoutperName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_HowmanymonitoringvisitswillCAcarryoutper</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_Howmanyperyear">
              <Type>int</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000019</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format />
              <MinValue>-2147483648</MinValue>
              <MaxValue>2147483647</MaxValue>
              <displaynames>
                <displayname description="How many per year" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_IsdisasterAffected">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000013</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>recommended</RequiredLevel>
              <AppDefaultValue>0</AppDefaultValue>
              <options>
                <option value="0">
                  <labels>
                    <label description="No" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Yes" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Is disaster Affected" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_isdisasteraffectedName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_IsdisasterAffected</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_IsSPF">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000013</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>required</RequiredLevel>
              <AppDefaultValue>0</AppDefaultValue>
              <options>
                <option value="0">
                  <labels>
                    <label description="No" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Yes" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Is SPF" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_isspfName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_IsSPF</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_IsSutableforFundRaising">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000013</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>0</AppDefaultValue>
              <options>
                <option value="0">
                  <labels>
                    <label description="No" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Yes" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Is Suitable for Fund Raising" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_issutableforfundraisingName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_IsSutableforFundRaising</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_IsthispartofanACTAppeal">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000013</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>0</AppDefaultValue>
              <options>
                <option value="0">
                  <labels>
                    <label description="No" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Yes" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Is this part of an ACT Appeal?" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_isthispartofanactappealName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_IsthispartofanACTAppeal</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_Language">
              <Type>picklist</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000030</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>1</AppDefaultValue>
              <options>
                <option value="1">
                  <labels>
                    <label description="English" languagecode="1033" />
                  </labels>
                </option>
                <option value="2">
                  <labels>
                    <label description="French" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Language" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_languageName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_Language</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_MainstreamingObjective">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000013</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>0</AppDefaultValue>
              <options>
                <option value="0">
                  <labels>
                    <label description="No" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Yes" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Mainstreaming Objective?" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_mainstreamingobjectiveName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_MainstreamingObjective</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_MonitoringPlan">
              <Type>nvarchar</Type>
              <Length>1000</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-11000000001e</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>required</RequiredLevel>
              <Format>textarea</Format>
              <MaxLength>500</MaxLength>
              <displaynames>
                <displayname description="Monitoring Plan" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_NumberofPeopledirectlyaffectedbytheEndDat">
              <Type>picklist</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000030</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>-1</AppDefaultValue>
              <options>
                <option value="1">
                  <labels>
                    <label description="Up to 200" languagecode="1033" />
                  </labels>
                </option>
                <option value="2">
                  <labels>
                    <label description="200-1000" languagecode="1033" />
                  </labels>
                </option>
                <option value="3">
                  <labels>
                    <label description="1000-10000" languagecode="1033" />
                  </labels>
                </option>
                <option value="4">
                  <labels>
                    <label description="10000-100000" languagecode="1033" />
                  </labels>
                </option>
                <option value="5">
                  <labels>
                    <label description="More than 100,000" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Number of People directly affected by the End Date" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_numberofpeopledirectlyaffectedbytheenddatName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_NumberofPeopledirectlyaffectedbytheEndDat</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_offsettingrating">
              <Type>picklist</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000030</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>1</AppDefaultValue>
              <options>
                <option value="1">
                  <labels>
                    <label description="No star rating" languagecode="1033" />
                  </labels>
                </option>
                <option value="2">
                  <labels>
                    <label description="1 star" languagecode="1033" />
                  </labels>
                </option>
                <option value="3">
                  <labels>
                    <label description="2 star" languagecode="1033" />
                  </labels>
                </option>
                <option value="4">
                  <labels>
                    <label description="3 star" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Offsetting Rating" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_offsettingratingName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_offsettingrating</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_ofGrantAmountApproved">
              <Type>int</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000019</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format />
              <MinValue>-2147483648</MinValue>
              <MaxValue>2147483647</MaxValue>
              <displaynames>
                <displayname description="% of Grant Amount Approved" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_partneramountapproved_tc">
              <Type>decimal</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000016</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <MinValue>0</MinValue>
              <MaxValue>1000000000</MaxValue>
              <Accuracy>2</Accuracy>
              <displaynames>
                <displayname description="Partner Amount Approved" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_PlannedApprovalDate">
              <Type>datetime</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000015</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format>date</Format>
              <displaynames>
                <displayname description="Planned Approval Date" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_PlannedTransferAmount">
              <Type>decimal</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000016</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <MinValue>0</MinValue>
              <MaxValue>1000000000</MaxValue>
              <Accuracy>2</Accuracy>
              <displaynames>
                <displayname description="Planned Transfer Amount" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_PlannedTransferDate">
              <Type>datetime</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000015</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format>date</Format>
              <displaynames>
                <displayname description="Planned Transfer Date" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_Practicalactiontorootoutpoverty">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000013</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>0</AppDefaultValue>
              <options>
                <option value="0">
                  <labels>
                    <label description="No" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Yes" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Practical action to root out poverty" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_practicalactiontorootoutpovertyName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_Practicalactiontorootoutpoverty</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_TestEntitybringaboutbiggestchange">
              <Type>nvarchar</Type>
              <Length>1000</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-11000000001e</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format>textarea</Format>
              <MaxLength>500</MaxLength>
              <displaynames>
                <displayname description="TestEntity bring about biggest change" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_TestEntitybudget">
              <Type>int</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000019</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format />
              <MinValue>-2147483648</MinValue>
              <MaxValue>2147483647</MaxValue>
              <displaynames>
                <displayname description="TestEntity Budget" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_TestEntitycode">
              <Type>nvarchar</Type>
              <Length>40</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-11000000001e</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format>text</Format>
              <MaxLength>20</MaxLength>
              <displaynames>
                <displayname description="TestEntity ID" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_TestEntityEndDate">
              <Type>datetime</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000015</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>recommended</RequiredLevel>
              <Format>date</Format>
              <displaynames>
                <displayname description="TestEntity End Date" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_TestEntityId">
              <Type>primarykey</Type>
              <IsNullable>0</IsNullable>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsPKAttribute>1</IsPKAttribute>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000032</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|RequiredForGrid</DisplayMask>
              <Descriptions>
                <Description description="Unique identifier for entity instances" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <displaynames>
                <displayname description="TestEntity" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_TestEntityname">
              <Type>nvarchar</Type>
              <Length>200</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-11000000001e</AttributeTypeId>
              <DisplayMask>ActivityPointerRegardingName|PrimaryName|ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="The name of the custom entity." languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>required</RequiredLevel>
              <Format>text</Format>
              <MaxLength>100</MaxLength>
              <displaynames>
                <displayname description="TestEntity Name" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_TestEntityRisk">
              <Type>nvarchar</Type>
              <Length>20</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-11000000001e</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format>text</Format>
              <MaxLength>10</MaxLength>
              <displaynames>
                <displayname description="TestEntity Risk" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_TestEntityRiskRaiting">
              <Type>picklist</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000030</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>-1</AppDefaultValue>
              <options>
                <option value="1">
                  <labels>
                    <label description="Low Risk" languagecode="1033" />
                  </labels>
                </option>
                <option value="2">
                  <labels>
                    <label description="Medium Risk" languagecode="1033" />
                  </labels>
                </option>
                <option value="3">
                  <labels>
                    <label description="High Risk" languagecode="1033" />
                  </labels>
                </option>
                <option value="4">
                  <labels>
                    <label description="Super High Risk" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="TestEntity Risk Raiting" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_TestEntityriskraitingName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_TestEntityRiskRaiting</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_TestEntitystartdate">
              <Type>datetime</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000015</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>recommended</RequiredLevel>
              <Format>date</Format>
              <displaynames>
                <displayname description="TestEntity Start Date" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_ReducingSuffering">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000013</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>0</AppDefaultValue>
              <options>
                <option value="0">
                  <labels>
                    <label description="No" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Yes" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Reducing Suffering" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_reducingsufferingName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_ReducingSuffering</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_RestoringLivelihood">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000013</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>0</AppDefaultValue>
              <options>
                <option value="0">
                  <labels>
                    <label description="No" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Yes" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Restoring Livelihood" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_restoringlivelihoodName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_RestoringLivelihood</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_SavingLives">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000013</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>0</AppDefaultValue>
              <options>
                <option value="0">
                  <labels>
                    <label description="No" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Yes" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Saving Lives" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_savinglivesName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_SavingLives</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_ScaleUpPriority">
              <Type>picklist</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000030</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>-1</AppDefaultValue>
              <options>
                <option value="1">
                  <labels>
                    <label description="1" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Scale Up Priority" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_scaleuppriorityName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_ScaleUpPriority</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_Status">
              <Type>picklist</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000030</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>6</AppDefaultValue>
              <options>
                <option value="3">
                  <labels>
                    <label description="Concept Draft" languagecode="1033" />
                  </labels>
                </option>
                <option value="4">
                  <labels>
                    <label description="Concept Pending Approval" languagecode="1033" />
                  </labels>
                </option>
                <option value="5">
                  <labels>
                    <label description="Concept Approved" languagecode="1033" />
                  </labels>
                </option>
                <option value="6">
                  <labels>
                    <label description="TestEntity Draft" languagecode="1033" />
                  </labels>
                </option>
                <option value="7">
                  <labels>
                    <label description="TestEntity Pending Approval" languagecode="1033" />
                  </labels>
                </option>
                <option value="8">
                  <labels>
                    <label description="TestEntity Approved" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Status" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_statusName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_Status</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_SuitableforOffsetting">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000013</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>0</AppDefaultValue>
              <options>
                <option value="0">
                  <labels>
                    <label description="No" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Yes" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Suitable for Offsetting?" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_suitableforoffsettingName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_SuitableforOffsetting</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_SummaryofTestEntityActivities">
              <Type>nvarchar</Type>
              <Length>1000</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-11000000001e</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format>textarea</Format>
              <MaxLength>500</MaxLength>
              <displaynames>
                <displayname description="Summary of TestEntity Activities" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_SummaryofSignificantChange">
              <Type>nvarchar</Type>
              <Length>600</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-11000000001e</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format>textarea</Format>
              <MaxLength>300</MaxLength>
              <displaynames>
                <displayname description="Summary of Significant Change" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_SunAccountingPeriod">
              <Type>picklist</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000030</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>-1</AppDefaultValue>
              <displaynames>
                <displayname description="Sun Accounting Period" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_sunaccountingperiodName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_SunAccountingPeriod</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_TargetGroupGender">
              <Type>picklist</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000030</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>-1</AppDefaultValue>
              <options>
                <option value="1">
                  <labels>
                    <label description="Male" languagecode="1033" />
                  </labels>
                </option>
                <option value="2">
                  <labels>
                    <label description="Female" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Target Group Gender" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_targetgroupgenderName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_TargetGroupGender</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_ThisisanewactivityforthePartner">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000013</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>0</AppDefaultValue>
              <options>
                <option value="0">
                  <labels>
                    <label description="No" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Yes" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="This is a new activity for the Partner" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_thisisanewactivityforthepartnerName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_ThisisanewactivityforthePartner</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_totalbudgetfromca_tc">
              <Type>decimal</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000016</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <MinValue>0</MinValue>
              <MaxValue>1000000000</MaxValue>
              <Accuracy>2</Accuracy>
              <displaynames>
                <displayname description="Total Budget from CA (Prime Currency)" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CA_TotalNumberofMonitoringAssessments">
              <Type>picklist</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000030</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <AppDefaultValue>-1</AppDefaultValue>
              <options>
                <option value="1">
                  <labels>
                    <label description="1" languagecode="1033" />
                  </labels>
                </option>
                <option value="2">
                  <labels>
                    <label description="2" languagecode="1033" />
                  </labels>
                </option>
                <option value="3">
                  <labels>
                    <label description="3" languagecode="1033" />
                  </labels>
                </option>
                <option value="4">
                  <labels>
                    <label description="4" languagecode="1033" />
                  </labels>
                </option>
                <option value="5">
                  <labels>
                    <label description="5" languagecode="1033" />
                  </labels>
                </option>
                <option value="6">
                  <labels>
                    <label description="6" languagecode="1033" />
                  </labels>
                </option>
                <option value="7">
                  <labels>
                    <label description="7" languagecode="1033" />
                  </labels>
                </option>
                <option value="8">
                  <labels>
                    <label description="8" languagecode="1033" />
                  </labels>
                </option>
                <option value="9">
                  <labels>
                    <label description="9" languagecode="1033" />
                  </labels>
                </option>
                <option value="10">
                  <labels>
                    <label description="10" languagecode="1033" />
                  </labels>
                </option>
                <option value="11">
                  <labels>
                    <label description="11" languagecode="1033" />
                  </labels>
                </option>
                <option value="12">
                  <labels>
                    <label description="12" languagecode="1033" />
                  </labels>
                </option>
              </options>
              <displaynames>
                <displayname description="Total Number of Monitoring Assessments" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ca_totalnumberofmonitoringassessmentsName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>CA_TotalNumberofMonitoringAssessments</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="CA_yearsinaTestEntity">
              <Type>int</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000019</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format />
              <MinValue>0</MinValue>
              <MaxValue>200</MaxValue>
              <displaynames>
                <displayname description="Years in TestEntity" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CreatedBy">
              <Type>lookup</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <ReferencedEntityObjectTypeCode>8</ReferencedEntityObjectTypeCode>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000031</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="Unique identifier of the user who created the record." languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format />
              <LookupClass>SystemUsers</LookupClass>
              <LookupStyle>single</LookupStyle>
              <LookupTypes />
              <displaynames>
                <displayname description="Created By" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="CreatedOn">
              <Type>datetime</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000015</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="Date and time when the record was created." languagecode="1033" />
              </Descriptions>
              <ImeMode>inactive</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format>date</Format>
              <displaynames>
                <displayname description="Created On" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="DeletionStateCode">
              <Type>int</Type>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000019</AttributeTypeId>
              <ImeMode>disabled</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format />
              <MinValue>-2147483648</MinValue>
              <MaxValue>2147483647</MaxValue>
            </attribute>
            <attribute PhysicalName="ImportSequenceNumber">
              <Type>int</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000019</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind</DisplayMask>
              <Descriptions>
                <Description description="Sequence number of the import that created this record." languagecode="1033" />
              </Descriptions>
              <ImeMode>disabled</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format />
              <MinValue>-2147483648</MinValue>
              <MaxValue>2147483647</MaxValue>
              <displaynames>
                <displayname description="Import Sequence Number" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ModifiedBy">
              <Type>lookup</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <ReferencedEntityObjectTypeCode>8</ReferencedEntityObjectTypeCode>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000031</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="Unique identifier of the user who modified the record." languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format />
              <LookupClass>SystemUsers</LookupClass>
              <LookupStyle>single</LookupStyle>
              <LookupTypes />
              <displaynames>
                <displayname description="Modified By" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="ModifiedOn">
              <Type>datetime</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000015</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="Date and time when the record was modified." languagecode="1033" />
              </Descriptions>
              <ImeMode>inactive</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format>date</Format>
              <displaynames>
                <displayname description="Modified On" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="OverriddenCreatedOn">
              <Type>datetime</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000015</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="Date and time that the record was migrated." languagecode="1033" />
              </Descriptions>
              <ImeMode>inactive</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format>date</Format>
              <displaynames>
                <displayname description="Record Created On" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="OwnerId">
              <Type>owner</Type>
              <IsNullable>0</IsNullable>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000035</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="Owner Id" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format />
              <LookupStyle>single</LookupStyle>
              <LookupTypes />
              <displaynames>
                <displayname description="TestEntity Proposer" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="OwnerIdDsc">
              <Type>int</Type>
              <IsNullable>0</IsNullable>
              <ValidForReadApi>1</ValidForReadApi>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000019</AttributeTypeId>
              <AttributeOf>OwnerId</AttributeOf>
              <XmlAbbreviation>dsc</XmlAbbreviation>
              <ImeMode>disabled</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format />
              <MinValue>-2147483648</MinValue>
              <MaxValue>2147483647</MaxValue>
            </attribute>
            <attribute PhysicalName="OwnerIdName">
              <Type>nvarchar</Type>
              <Length>320</Length>
              <IsNullable>0</IsNullable>
              <ValidForReadApi>1</ValidForReadApi>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-11000000001e</AttributeTypeId>
              <AttributeOf>OwnerId</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <IsSortAttribute>1</IsSortAttribute>
              <Descriptions>
                <Description description="Name of the owner" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format>text</Format>
              <MaxLength>100</MaxLength>
            </attribute>
            <attribute PhysicalName="OwnerIdType">
              <Type>int</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000019</AttributeTypeId>
              <DisplayMask>ObjectTypeCode</DisplayMask>
              <AttributeOf>OwnerId</AttributeOf>
              <XmlAbbreviation>type</XmlAbbreviation>
              <Descriptions>
                <Description description="Owner Id Type" languagecode="1033" />
              </Descriptions>
              <ImeMode>disabled</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format />
              <MinValue>-2147483648</MinValue>
              <MaxValue>2147483647</MaxValue>
            </attribute>
            <attribute PhysicalName="OwningBusinessUnit">
              <Type>lookup</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <ReferencedEntityObjectTypeCode>10</ReferencedEntityObjectTypeCode>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000031</AttributeTypeId>
              <Descriptions>
                <Description description="Unique identifier for the business unit that owns the record" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format />
              <LookupStyle>single</LookupStyle>
              <LookupTypes />
              <displaynames>
                <displayname description="Owning Business Unit" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="OwningUser">
              <Type>lookup</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <ReferencedEntityObjectTypeCode>8</ReferencedEntityObjectTypeCode>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000031</AttributeTypeId>
              <AggregateOf>OwnerId</AggregateOf>
              <Descriptions>
                <Description description="Unique identifier for the user that owns the record." languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format />
              <LookupStyle>single</LookupStyle>
              <LookupTypes />
            </attribute>
            <attribute PhysicalName="statecode">
              <Type>state</Type>
              <IsNullable>0</IsNullable>
              <ValidForReadApi>1</ValidForReadApi>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000036</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="Status of the TestEntity" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <states>
                <state value="0" defaultstatus="3" invariantname="Active">
                  <labels>
                    <label description="Active" languagecode="1033" />
                  </labels>
                </state>
                <state value="1" defaultstatus="2" invariantname="Inactive">
                  <labels>
                    <label description="Inactive" languagecode="1033" />
                  </labels>
                </state>
              </states>
              <displaynames>
                <displayname description="Status" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="statecodeName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>statecode</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="statuscode">
              <Type>status</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000037</AttributeTypeId>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Descriptions>
                <Description description="Reason for the status of the TestEntity" languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <statuses>
                <status value="3" state="0">
                  <labels>
                    <label description="Concept Draft" languagecode="1033" />
                  </labels>
                </status>
                <status value="4" state="0">
                  <labels>
                    <label description="Concept Pending Approval" languagecode="1033" />
                  </labels>
                </status>
                <status value="5" state="0">
                  <labels>
                    <label description="Concept Approved" languagecode="1033" />
                  </labels>
                </status>
                <status value="6" state="0">
                  <labels>
                    <label description="TestEntity Draft" languagecode="1033" />
                  </labels>
                </status>
                <status value="7" state="0">
                  <labels>
                    <label description="TestEntity Pending Approval" languagecode="1033" />
                  </labels>
                </status>
                <status value="8" state="0">
                  <labels>
                    <label description="TestEntity Approved" languagecode="1033" />
                  </labels>
                </status>
                <status value="2" state="1">
                  <labels>
                    <label description="Inactive" languagecode="1033" />
                  </labels>
                </status>
              </statuses>
              <displaynames>
                <displayname description="Status Reason" languagecode="1033" />
              </displaynames>
            </attribute>
            <attribute PhysicalName="statuscodeName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsLogical>1</IsLogical>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000033</AttributeTypeId>
              <AttributeOf>statuscode</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
            <attribute PhysicalName="TimeZoneRuleVersionNumber">
              <Type>int</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000019</AttributeTypeId>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format />
              <MinValue>-1</MinValue>
              <MaxValue>2147483647</MaxValue>
              <Accuracy>0</Accuracy>
            </attribute>
            <attribute PhysicalName="UTCConversionTimeZoneCode">
              <Type>int</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000019</AttributeTypeId>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
              <Format />
              <MinValue>-1</MinValue>
              <MaxValue>2147483647</MaxValue>
              <Accuracy>0</Accuracy>
            </attribute>
            <attribute PhysicalName="VersionNumber">
              <Type>timestamp</Type>
              <AttributeTypeId>00000000-0000-0000-00aa-110000000025</AttributeTypeId>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>none</RequiredLevel>
            </attribute>
          </attributes>
        </entity>
      </EntityInfo>
      <FormXml id="{419C3CD7-6EDC-497D-B3B1-A5F1912E1B8A}">
        <forms>
          <entity name="ca_TestEntity" objecttypecode="10022">
            <form type="main" enablerelatedinformation="true" relatedInformationCollapsed="true" id="{a1deb371-e8de-478b-b75b-ebf4786a683c}">
              <tabs>
                <tab verticallayout="true" id="{a13f3f09-f143-4019-9ff0-c031cf890ec0}" IsUserDefined="1" locklevel="0">
                  <labels>
                    <label description="Overview" languagecode="1033" />
                  </labels>
                  <sections>
                    <section showlabel="true" showbar="true" IsUserDefined="0" id="{5bed01e9-2b7b-468f-96fd-6c51d16236a6}" locklevel="0" labelwidth="115">
                      <labels>
                        <label description="TestEntity Information" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell id="{8bdde332-adf7-45d9-91b8-17cc0bb5eaf4}" showlabel="true" locklevel="0" colspan="2">
                            <labels>
                              <label description="TestEntity Name" languagecode="1033" />
                            </labels>
                            <control id="ca_TestEntityname" classid="{4273EDBD-AC1D-40d3-9FB2-095C621B552D}" datafieldname="ca_TestEntityname" disabled="false" />
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{f0217294-258d-4804-90e8-79710ccd311e}">
                            <labels>
                              <label description="Programme" languagecode="1033" />
                            </labels>
                            <control id="ca_programmeid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_programmeid" disabled="false">
                              <parameters>
                                <AutoResolve>true</AutoResolve>
                              </parameters>
                            </control>
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{6a05bb29-8265-48eb-b698-190f89e26551}">
                            <labels>
                              <label description="Programme Objective" languagecode="1033" />
                            </labels>
                            <control id="ca_programmeobjectiveid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_programmeobjectiveid" disabled="false">
                              <parameters>
                                <AutoResolve>false</AutoResolve>
                              </parameters>
                            </control>
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{f9ca6d8d-c79a-470a-92e7-1465eb2c3b29}">
                            <labels>
                              <label description="TestEntity Proposer" languagecode="1033" />
                            </labels>
                            <control id="ca_TestEntitymanagerid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_TestEntitymanagerid" disabled="false">
                              <parameters>
                                <AutoResolve>true</AutoResolve>
                              </parameters>
                            </control>
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{cc6a4a8f-8fa7-4ce2-889c-21488c785fc6}">
                            <labels>
                              <label description="Mainstreaming Objective?" languagecode="1033" />
                            </labels>
                            <control id="ca_mainstreamingobjective" classid="{B0C6723A-8503-4fd7-BB28-C8A06AC933C2}" datafieldname="ca_mainstreamingobjective" disabled="true" />
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{37a235d7-7ed0-4de5-be04-cc2cfc334089}">
                            <labels>
                              <label description="Is this a SPF administered by the partner" languagecode="1033" />
                            </labels>
                            <control id="ca_isspf" classid="{67FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED}" datafieldname="ca_isspf" disabled="false" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{317369c8-49c0-48f0-8441-8690642480b6}">
                            <labels>
                              <label description="Corporate Strategy Objectives/Corporate Advocacy Priorities" languagecode="1033" />
                            </labels>
                            <control id="ca_csoid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_csoid" disabled="false">
                              <parameters>
                                <AutoResolve>false</AutoResolve>
                              </parameters>
                            </control>
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{9b2e0c49-ebf9-4d39-b1cb-dbc1f1c2e228}">
                            <labels>
                              <label description="TestEntity Start Date" languagecode="1033" />
                            </labels>
                            <control id="ca_TestEntitystartdate" classid="{5B773807-9FB2-42db-97C3-7A91EFF8ADFF}" datafieldname="ca_TestEntitystartdate" disabled="false" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{ccc71094-eb39-467d-9257-07e03eae561c}">
                            <labels>
                              <label description="Partner" languagecode="1033" />
                            </labels>
                            <control id="ca_partnerid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_partnerid" disabled="false" />
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{a9c19baf-36cf-455c-9cf7-4ddc354145dc}">
                            <labels>
                              <label description="TestEntity End Date" languagecode="1033" />
                            </labels>
                            <control id="ca_TestEntityenddate" classid="{5B773807-9FB2-42db-97C3-7A91EFF8ADFF}" datafieldname="ca_TestEntityenddate" disabled="false" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{49b21907-2d20-4721-9973-e9664ddbfd14}">
                            <labels>
                              <label description="TestEntity Type" languagecode="1033" />
                            </labels>
                            <control id="ca_TestEntitytype1id" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_TestEntitytype1id" disabled="false">
                              <parameters>
                                <AutoResolve>false</AutoResolve>
                              </parameters>
                            </control>
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{6644798b-e6c0-474e-8c26-a41563d96474}">
                            <labels>
                              <label description="Years in TestEntity" languagecode="1033" />
                            </labels>
                            <control id="ca_yearsinaTestEntity" classid="{C6D124CA-7EDA-4a60-AEA9-7FB8D318B68F}" datafieldname="ca_yearsinaTestEntity" disabled="true" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{a462f89e-84b2-4255-ae4f-072363d1d5e1}">
                            <labels>
                              <label description="TestEntity Type" languagecode="1033" />
                            </labels>
                            <control id="ca_TestEntitytype3id" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_TestEntitytype3id" disabled="false">
                              <parameters>
                                <AutoResolve>false</AutoResolve>
                              </parameters>
                            </control>
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{a5604d1d-c5a2-4d53-8db7-903f46647376}">
                            <labels>
                              <label description="Number of People directly affected by the End Date" languagecode="1033" />
                            </labels>
                            <control id="ca_numberofpeopledirectlyaffectedbytheenddat" classid="{3EF39988-22BB-4f0b-BBBE-64B5A3748AEE}" datafieldname="ca_numberofpeopledirectlyaffectedbytheenddat" disabled="false" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{5e98b0d2-e352-4da2-9a6f-5946e4e03e31}">
                            <labels>
                              <label description="TestEntity Type" languagecode="1033" />
                            </labels>
                            <control id="ca_TestEntitytype2id" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_TestEntitytype2id" disabled="false">
                              <parameters>
                                <AutoResolve>false</AutoResolve>
                              </parameters>
                            </control>
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{415b050b-52b6-4998-ac0a-0f7a95add98a}">
                            <labels>
                              <label description="Status" languagecode="1033" />
                            </labels>
                            <control id="ca_status" classid="{3EF39988-22BB-4f0b-BBBE-64B5A3748AEE}" datafieldname="ca_status" disabled="true" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{81249b7d-aa4c-45d4-ad12-de0bfe2c81bc}">
                            <labels>
                              <label description="Target Group" languagecode="1033" />
                            </labels>
                            <control id="ca_primarytargetgroupid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_primarytargetgroupid" disabled="false">
                              <parameters>
                                <AutoResolve>true</AutoResolve>
                              </parameters>
                            </control>
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{5fcbc69a-99d2-4bbb-ae5f-616811a64952}">
                            <labels>
                              <label description="Line Manager" languagecode="1033" />
                            </labels>
                            <control id="ca_linemanagerid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_linemanagerid" disabled="false">
                              <parameters>
                                <AutoResolve>true</AutoResolve>
                              </parameters>
                            </control>
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{c85443f1-8ec8-4ab2-bddd-4b0b868d0b12}">
                            <labels>
                              <label description="Target Group Gender" languagecode="1033" />
                            </labels>
                            <control id="ca_targetgroupgender" classid="{3EF39988-22BB-4f0b-BBBE-64B5A3748AEE}" datafieldname="ca_targetgroupgender" disabled="false" />
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" id="{3824edc7-4258-4a83-a0fb-ecfdbe470699}">
                            <labels>
                              <label description="Is Suitable for Fund Raising" languagecode="1033" />
                            </labels>
                            <control id="ca_issutableforfundraising" classid="{67FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED}" datafieldname="ca_issutableforfundraising" disabled="false" />
                          </cell>
                          <cell id="{32fa0913-f207-4cfc-9da6-2ae05cd50717}">
                            <labels>
                              <label description="" languagecode="1033" />
                            </labels>
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" id="{d33abe7a-8731-4090-8457-dc1e24fc21f1}">
                            <labels>
                              <label description="Primary Location" languagecode="1033" />
                            </labels>
                            <control id="ca_primarylocationid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_primarylocationid" disabled="true">
                              <parameters>
                                <AutoResolve>false</AutoResolve>
                              </parameters>
                            </control>
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{c403d904-19f9-47ae-b4e6-6ddd07e49c8d}">
                            <labels>
                              <label description="Location 2" languagecode="1033" />
                            </labels>
                            <control id="ca_location2id" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_location2id" disabled="true">
                              <parameters>
                                <AutoResolve>false</AutoResolve>
                              </parameters>
                            </control>
                          </cell>
                        </row>
                        <row>
                          <cell id="{0a01a4d2-7c19-4f4f-8514-e833730e85fa}">
                            <labels>
                              <label description="" languagecode="1033" />
                            </labels>
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{e233d188-f26d-43c1-8562-400f1ddf1558}">
                            <labels>
                              <label description="Location 3" languagecode="1033" />
                            </labels>
                            <control id="ca_location3id" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_location3id" disabled="true">
                              <parameters>
                                <AutoResolve>false</AutoResolve>
                              </parameters>
                            </control>
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="4" colspan="2" id="{008afba6-bbcf-419f-b6a9-a9dc043206ad}">
                            <labels>
                              <label description="Summary of TestEntity Activities" languagecode="1033" />
                            </labels>
                            <events>
                              <event name="onchange" application="false" active="false">
                                <script><![CDATA[]]></script>
                                <dependencies />
                              </event>
                            </events>
                            <control id="ca_summaryofTestEntityactivities" classid="{E0DECE4B-6FC8-4a8f-A065-082708572369}" datafieldname="ca_summaryofTestEntityactivities" disabled="false" />
                          </cell>
                        </row>
                        <row />
                        <row />
                        <row />
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="4" colspan="2" id="{4464dfd4-8bcc-4273-93dd-85479e5117c8}">
                            <labels>
                              <label description="Summary of Significant Change" languagecode="1033" />
                            </labels>
                            <control id="ca_summaryofsignificantchange" classid="{E0DECE4B-6FC8-4a8f-A065-082708572369}" datafieldname="ca_summaryofsignificantchange" disabled="false" />
                          </cell>
                        </row>
                        <row />
                        <row />
                        <row />
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{ed5beee6-bc59-4bd6-b736-d899db9e288e}">
                            <labels>
                              <label description="Is target group disaster affected" languagecode="1033" />
                            </labels>
                            <control id="ca_disasteraffectedtargetgroup" classid="{3EF39988-22BB-4f0b-BBBE-64B5A3748AEE}" datafieldname="ca_disasteraffectedtargetgroup" disabled="false" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{be5a51c2-8905-4c89-9610-bf4a942a554b}">
                            <labels>
                              <label description="Partnership Agreement" languagecode="1033" />
                            </labels>
                            <control id="ca_partnershipaggrementid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_partnershipaggrementid" disabled="true">
                              <parameters>
                                <AutoResolve>true</AutoResolve>
                              </parameters>
                            </control>
                          </cell>
                        </row>
                      </rows>
                    </section>
                    <section showlabel="true" showbar="false" locklevel="0" id="{b0e4b56e-c4cc-dd11-8dd4-0003ff514eb3}" IsUserDefined="1" layout="varwidth" columns="11" labelwidth="115">
                      <labels>
                        <label description="Disaster Affected Target Group" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{5b729805-4b03-46ac-ad29-7d5fba9848c0}">
                            <labels>
                              <label description="Restoring Livelihood" languagecode="1033" />
                            </labels>
                            <control id="ca_restoringlivelihood" classid="{67FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED}" datafieldname="ca_restoringlivelihood" disabled="false" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{d2eeebf0-1587-4cb1-9d64-e1dd96908a73}">
                            <labels>
                              <label description="Is this part of an ACT Appeal?" languagecode="1033" />
                            </labels>
                            <control id="ca_isthispartofanactappeal" classid="{67FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED}" datafieldname="ca_isthispartofanactappeal" disabled="false" />
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{0a03b4a2-f970-40f3-98c0-96ad4d2aebd9}">
                            <labels>
                              <label description="Saving Lives" languagecode="1033" />
                            </labels>
                            <control id="ca_savinglives" classid="{67FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED}" datafieldname="ca_savinglives" disabled="false" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{8daa5b6f-b176-4619-be7a-2cb55a12a08f}">
                            <labels>
                              <label description="ACT Appeal Code" languagecode="1033" />
                            </labels>
                            <control id="ca_actappealcode" classid="{4273EDBD-AC1D-40d3-9FB2-095C621B552D}" datafieldname="ca_actappealcode" disabled="false" />
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{0371a3f0-e0fa-4f4b-b863-c87832ac4a5a}">
                            <labels>
                              <label description="Reducing Suffering" languagecode="1033" />
                            </labels>
                            <control id="ca_reducingsuffering" classid="{67FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED}" datafieldname="ca_reducingsuffering" disabled="false" />
                          </cell>
                          <cell showlabel="true" colspan="1" id="{a00601ad-9dd8-4167-a53d-022d9ba9a61f}">
                            <labels>
                              <label description="" languagecode="1033" />
                            </labels>
                          </cell>
                        </row>
                      </rows>
                    </section>
                    <section showlabel="true" showbar="false" locklevel="0" id="{d0b35451-c4cc-dd11-8dd4-0003ff514eb3}" IsUserDefined="1" layout="varwidth" columns="11" labelwidth="115">
                      <labels>
                        <label description="How does the TestEntity Relate to Christian Aid's Essential Purpose?" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{d8b8e3cb-52bc-425a-8fea-e6183a7337e0}">
                            <labels>
                              <label description="Change systems, structures, policy" languagecode="1033" />
                            </labels>
                            <control id="ca_changesystemsstructurespolicy" classid="{67FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED}" datafieldname="ca_changesystemsstructurespolicy" disabled="false" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{e8041309-d060-46a0-b009-ba842758f500}">
                            <labels>
                              <label description="Expose the scandal of poverty" languagecode="1033" />
                            </labels>
                            <control id="ca_exposethescandalofpoverty" classid="{67FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED}" datafieldname="ca_exposethescandalofpoverty" disabled="false" />
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{c61da67b-9f19-466a-b36a-5e2cbbac42e3}">
                            <labels>
                              <label description="Practical action to root out poverty" languagecode="1033" />
                            </labels>
                            <control id="ca_practicalactiontorootoutpoverty" classid="{67FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED}" datafieldname="ca_practicalactiontorootoutpoverty" disabled="false" />
                          </cell>
                          <cell showlabel="true" colspan="1" id="{6af689d2-2109-4945-9e30-d04db1f1058a}">
                            <labels>
                              <label description="" languagecode="1033" />
                            </labels>
                          </cell>
                        </row>
                      </rows>
                    </section>
                    <section showlabel="true" showbar="false" locklevel="0" id="{80339452-c5cc-dd11-8dd4-0003ff514eb3}" IsUserDefined="1" layout="varwidth" columns="11" labelwidth="115">
                      <labels>
                        <label description="How has the TestEntity been designed to bring about the biggest possible change?" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell auto="false" showlabel="false" locklevel="0" rowspan="4" colspan="2" id="{def40a83-3a6d-472f-978d-50b00e597f1a}">
                            <labels>
                              <label description="TestEntity bring about biggest change" languagecode="1033" />
                            </labels>
                            <control id="ca_TestEntitybringaboutbiggestchange" classid="{E0DECE4B-6FC8-4a8f-A065-082708572369}" datafieldname="ca_TestEntitybringaboutbiggestchange" disabled="false" />
                          </cell>
                        </row>
                        <row />
                        <row />
                        <row />
                      </rows>
                    </section>
                    <section showlabel="true" showbar="false" locklevel="0" id="{30ef9473-c5cc-dd11-8dd4-0003ff514eb3}" IsUserDefined="1" layout="varwidth" columns="11" labelwidth="115">
                      <labels>
                        <label description="How does it contribute to the work of the programme?" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell auto="false" showlabel="false" locklevel="0" rowspan="4" colspan="2" id="{e58e2b04-46a5-4608-90ce-11227e46a125}">
                            <labels>
                              <label description="How does it contribute to work of programme" languagecode="1033" />
                            </labels>
                            <control id="ca_howdoesitcontributetoworkofprogramme" classid="{E0DECE4B-6FC8-4a8f-A065-082708572369}" datafieldname="ca_howdoesitcontributetoworkofprogramme" disabled="false" />
                          </cell>
                        </row>
                        <row />
                        <row />
                        <row />
                      </rows>
                    </section>
                    <section showlabel="true" showbar="false" locklevel="0" id="{30778098-31cd-dd11-8dd4-0003ff514eb3}" IsUserDefined="1" layout="varwidth" columns="11" labelwidth="115" height="auto">
                      <labels>
                        <label description="How does the TestEntity apply Lessons Learnt from previous work" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell auto="true" showlabel="false" locklevel="0" rowspan="5" colspan="2" id="{9531c744-0b9b-402f-88cd-f6c59a087a49}">
                            <labels>
                              <label description="Application of Lessons learnt from previous work" languagecode="1033" />
                            </labels>
                            <control id="ca_applicationoflessonslearntfrompreviouswor" classid="{E0DECE4B-6FC8-4a8f-A065-082708572369}" datafieldname="ca_applicationoflessonslearntfrompreviouswor" disabled="false" />
                          </cell>
                        </row>
                        <row />
                        <row />
                        <row />
                        <row height="auto" />
                      </rows>
                    </section>
                  </sections>
                </tab>
                <tab id="{f03e9cdb-c5cc-dd11-8dd4-0003ff514eb3}" IsUserDefined="1" locklevel="0">
                  <labels>
                    <label description="Quality and Risk Management" languagecode="1033" />
                  </labels>
                  <sections>
                    <section showlabel="true" showbar="true" locklevel="0" id="{f13e9cdb-c5cc-dd11-8dd4-0003ff514eb3}" IsUserDefined="1" layout="varwidth" columns="11" labelwidth="115">
                      <labels>
                        <label description="General" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{41aa7cad-2ca9-4570-a365-c8f817f9584c}">
                            <labels>
                              <label description="This is a new activity for the Partner" languagecode="1033" />
                            </labels>
                            <control id="ca_thisisanewactivityforthepartner" classid="{67FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED}" datafieldname="ca_thisisanewactivityforthepartner" disabled="false" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{7253b860-8a13-478e-8dbd-bce495f81c50}">
                            <labels>
                              <label description="Estimated Partner Annual Income(Prime Currency)" languagecode="1033" />
                            </labels>
                            <control id="ca_estimatedpartnerannualincome_tc" classid="{C3EFE0C3-0EC6-42be-8349-CBD9079DFD8E}" datafieldname="ca_estimatedpartnerannualincome_tc" disabled="false" />
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{12b63731-7567-4d48-ad36-6445a68742d3}">
                            <labels>
                              <label description="Partner Amount Approved" languagecode="1033" />
                            </labels>
                            <control id="ca_partneramountapproved_tc" classid="{C3EFE0C3-0EC6-42be-8349-CBD9079DFD8E}" datafieldname="ca_partneramountapproved_tc" disabled="false" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{749c1249-c8b1-42e2-9034-52c5beb4dd15}">
                            <labels>
                              <label description="% of Grant Amount Approved" languagecode="1033" />
                            </labels>
                            <control id="ca_ofgrantamountapproved" classid="{C6D124CA-7EDA-4a60-AEA9-7FB8D318B68F}" datafieldname="ca_ofgrantamountapproved" disabled="false" />
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="4" colspan="2" id="{9ede96f6-726a-493b-98ab-97bcdee5eb14}">
                            <labels>
                              <label description="Additional Area for monitoring/action" languagecode="1033" />
                            </labels>
                            <control id="ca_additionalareaformonitoringaction" classid="{E0DECE4B-6FC8-4a8f-A065-082708572369}" datafieldname="ca_additionalareaformonitoringaction" disabled="false" />
                          </cell>
                        </row>
                        <row />
                        <row />
                        <row />
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="4" colspan="2" id="{c0180fd1-4154-4ab5-b9f2-8c62574f5d34}">
                            <labels>
                              <label description="Description of Action or Monitoring" languagecode="1033" />
                            </labels>
                            <control id="ca_descriptionofactionormonitoring" classid="{E0DECE4B-6FC8-4a8f-A065-082708572369}" datafieldname="ca_descriptionofactionormonitoring" disabled="false" />
                          </cell>
                        </row>
                        <row />
                        <row />
                        <row />
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{76969e9b-f6d4-4954-ae4c-84794e213470}">
                            <labels>
                              <label description="TestEntity Risk Raiting" languagecode="1033" />
                            </labels>
                            <control id="ca_TestEntityriskraiting" classid="{3EF39988-22BB-4f0b-BBBE-64B5A3748AEE}" datafieldname="ca_TestEntityriskraiting" disabled="true" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{6ec2906d-a1b9-4e06-bef8-e8d62f329fbb}">
                            <labels>
                              <label description="TestEntity Seconder" languagecode="1033" />
                            </labels>
                            <control id="ca_TestEntityseconderid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_TestEntityseconderid" disabled="false">
                              <parameters>
                                <AutoResolve>true</AutoResolve>
                              </parameters>
                            </control>
                          </cell>
                        </row>
                      </rows>
                    </section>
                    <section showlabel="true" showbar="true" locklevel="0" id="{60e0c910-c6cc-dd11-8dd4-0003ff514eb3}" IsUserDefined="1" layout="varwidth" columns="11" labelwidth="115">
                      <labels>
                        <label description="Monitoring Plan" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{57680fcf-543c-4caa-8127-2ec7425048e8}">
                            <labels>
                              <label description="How many monitoring assessments per year?" languagecode="1033" />
                            </labels>
                            <control id="ca_howmanymonitoringassessmentsperyear" classid="{3EF39988-22BB-4f0b-BBBE-64B5A3748AEE}" datafieldname="ca_howmanymonitoringassessmentsperyear" disabled="false" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{2078cb89-12b3-41e4-a735-d205708342a6}">
                            <labels>
                              <label description="How many monitoring visits will CA carry out per year?" languagecode="1033" />
                            </labels>
                            <control id="ca_howmanymonitoringvisitswillcacarryoutper" classid="{3EF39988-22BB-4f0b-BBBE-64B5A3748AEE}" datafieldname="ca_howmanymonitoringvisitswillcacarryoutper" disabled="false" />
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="4" colspan="2" id="{976040b0-83e5-4706-b6d1-67043a35afcf}">
                            <labels>
                              <label description="Monitoring Plan" languagecode="1033" />
                            </labels>
                            <control id="ca_monitoringplan" classid="{E0DECE4B-6FC8-4a8f-A065-082708572369}" datafieldname="ca_monitoringplan" disabled="false" />
                          </cell>
                        </row>
                        <row />
                        <row />
                        <row />
                      </rows>
                    </section>
                  </sections>
                </tab>
                <tab id="{c0488ae6-c6cc-dd11-8dd4-0003ff514eb3}" IsUserDefined="1" locklevel="0">
                  <labels>
                    <label description="Funding" languagecode="1033" />
                  </labels>
                  <sections>
                    <section showlabel="false" showbar="false" locklevel="0" id="{30c4bdf0-c6cc-dd11-8dd4-0003ff514eb3}" IsUserDefined="1" layout="varwidth" columns="11" labelwidth="115">
                      <labels>
                        <label description="General Information" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{72317a8d-1cbb-433b-b937-0ac6cc4c4819}">
                            <labels>
                              <label description="Prime Currency" languagecode="1033" />
                            </labels>
                            <control id="ca_primecurrencyid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_primecurrencyid" disabled="false" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{bb608120-5013-4186-907b-4a5790154623}">
                            <labels>
                              <label description="Total Budget from CA (Prime Currency)" languagecode="1033" />
                            </labels>
                            <control id="ca_totalbudgetfromca_tc" classid="{C3EFE0C3-0EC6-42be-8349-CBD9079DFD8E}" datafieldname="ca_totalbudgetfromca_tc" disabled="true" />
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{fdc0e83f-4edf-46de-9683-0c040867dd43}">
                            <labels>
                              <label description="Commitments" languagecode="1033" />
                            </labels>
                            <control id="ca_commitments_tc" classid="{C3EFE0C3-0EC6-42be-8349-CBD9079DFD8E}" datafieldname="ca_commitments_tc" disabled="true" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{808a45c1-6145-4a92-85dd-671e11816c17}">
                            <labels>
                              <label description="Commitments in Principle" languagecode="1033" />
                            </labels>
                            <control id="ca_commitmentsinprinciple_tc" classid="{C3EFE0C3-0EC6-42be-8349-CBD9079DFD8E}" datafieldname="ca_commitmentsinprinciple_tc" disabled="true" />
                          </cell>
                        </row>
                      </rows>
                    </section>
                    <section showlabel="true" showbar="false" locklevel="0" id="{605f3dc3-c7cc-dd11-8dd4-0003ff514eb3}" IsUserDefined="1" layout="varwidth" columns="11" labelwidth="115">
                      <labels>
                        <label description="Scale Up" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{851bbc66-d3cc-4170-855d-8ab6b8d8bfde}">
                            <labels>
                              <label description="Flag for Scale up" languagecode="1033" />
                            </labels>
                            <control id="ca_flagforscaleup" classid="{67FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED}" datafieldname="ca_flagforscaleup" disabled="false" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{0cd76d79-5bbc-4b8d-8dcc-8782be30775d}">
                            <labels>
                              <label description="Scale Up Priority" languagecode="1033" />
                            </labels>
                            <events>
                              <event name="onchange" application="false" active="false">
                                <script><![CDATA[]]></script>
                                <dependencies />
                              </event>
                            </events>
                            <control id="ca_scaleuppriority" classid="{3EF39988-22BB-4f0b-BBBE-64B5A3748AEE}" datafieldname="ca_scaleuppriority" disabled="false" />
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{5a8ae63e-b6ed-48b3-ad39-d30086aa2a29}">
                            <labels>
                              <label description="Scale Up Currency" languagecode="1033" />
                            </labels>
                            <control id="ca_scaleupcurrencyid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_scaleupcurrencyid" disabled="false" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{60446a2d-32f9-4d00-b88a-9056fc63739f}">
                            <labels>
                              <label description="Additional Amount Sought" languagecode="1033" />
                            </labels>
                            <control id="ca_additionalamountsought_tc" classid="{C3EFE0C3-0EC6-42be-8349-CBD9079DFD8E}" datafieldname="ca_additionalamountsought_tc" disabled="false" />
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{1b2edfeb-5eb2-449c-8637-8daf41dd54d6}">
                            <labels>
                              <label description="Suitable for Offsetting?" languagecode="1033" />
                            </labels>
                            <control id="ca_suitableforoffsetting" classid="{B0C6723A-8503-4fd7-BB28-C8A06AC933C2}" datafieldname="ca_suitableforoffsetting" disabled="false" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{6010d202-8134-4a4e-819f-48193c6f305b}">
                            <labels>
                              <label description="Offsetting Rating" languagecode="1033" />
                            </labels>
                            <control id="ca_offsettingrating" classid="{3EF39988-22BB-4f0b-BBBE-64B5A3748AEE}" datafieldname="ca_offsettingrating" disabled="false" />
                          </cell>
                        </row>
                      </rows>
                    </section>
                    <section showlabel="true" showbar="false" locklevel="0" id="{809da909-c8cc-dd11-8dd4-0003ff514eb3}" IsUserDefined="1" layout="varwidth" columns="11" labelwidth="115">
                      <labels>
                        <label description="Adding Grant to TestEntity" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{6e628a04-a94b-403b-92ac-b97d38576d7d}">
                            <labels>
                              <label description="Available Amount" languagecode="1033" />
                            </labels>
                            <control id="ca_availableamount_tc" classid="{C3EFE0C3-0EC6-42be-8349-CBD9079DFD8E}" datafieldname="ca_availableamount_tc" disabled="true" />
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{a92ca9af-38d9-4550-a18d-84e410e77fcd}">
                            <labels>
                              <label description="Total Grants" languagecode="1033" />
                            </labels>
                            <control id="ca_grants_tc" classid="{C3EFE0C3-0EC6-42be-8349-CBD9079DFD8E}" datafieldname="ca_grants_tc" disabled="true" />
                          </cell>
                        </row>
                        <row>
                          <cell showlabel="false" auto="false" rowspan="6" colspan="2" id="{359cde08-7b27-4367-8ae5-f9e9c3327c61}">
                            <labels>
                              <label description="" languagecode="1033" />
                            </labels>
                            <control id="IFRAME_Grant" classid="{FD2A7985-3187-444e-908D-6624B21F69C0}">
                              <parameters>
                                <Url>about:blank</Url>
                                <PassParameters>false</PassParameters>
                                <Security>false</Security>
                                <Scrolling>auto</Scrolling>
                                <Border>true</Border>
                              </parameters>
                            </control>
                            <events>
                              <event name="onload" application="0">
                                <script><![CDATA[ ]]></script>
                                <dependencies />
                              </event>
                            </events>
                          </cell>
                        </row>
                        <row />
                        <row />
                        <row />
                        <row />
                        <row />
                      </rows>
                    </section>
                    <section showlabel="true" showbar="false" locklevel="0" id="{a08db782-41cd-dd11-8dd4-0003ff514eb3}" IsUserDefined="1" layout="varwidth" columns="11" labelwidth="115">
                      <labels>
                        <label description="Grants should be paid in prioritised order of code (4,9,3,2,1)" languagecode="1033" />
                      </labels>
                      <rows />
                    </section>
                    <section showlabel="true" showbar="false" locklevel="0" id="{801ea558-c8cc-dd11-8dd4-0003ff514eb3}" IsUserDefined="1" layout="varwidth" columns="11" labelwidth="115">
                      <labels>
                        <label description="Highlight the Grant and edit the associated Transfers" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell showlabel="false" auto="false" rowspan="6" colspan="2" id="{23fbe32e-74ae-418f-8dbc-897f0b3df1e9}">
                            <labels>
                              <label description="" languagecode="1033" />
                            </labels>
                            <control id="IFRAME_Transfer" classid="{FD2A7985-3187-444e-908D-6624B21F69C0}">
                              <parameters>
                                <Url>about:blank</Url>
                                <PassParameters>false</PassParameters>
                                <Security>false</Security>
                                <Scrolling>auto</Scrolling>
                                <Border>true</Border>
                              </parameters>
                            </control>
                            <events>
                              <event name="onload" application="0">
                                <script><![CDATA[ ]]></script>
                                <dependencies />
                              </event>
                            </events>
                          </cell>
                        </row>
                        <row />
                        <row />
                        <row />
                        <row />
                        <row />
                      </rows>
                    </section>
                  </sections>
                </tab>
                <tab id="{700aec5c-20cd-dd11-8dd4-0003ff514eb3}" IsUserDefined="1" locklevel="0">
                  <labels>
                    <label description="Reporting" languagecode="1033" />
                  </labels>
                  <sections>
                    <section showlabel="true" showbar="true" locklevel="0" id="{40a61e86-13cd-dd11-8dd4-0003ff514eb3}" IsUserDefined="1" layout="varwidth" columns="11" labelwidth="115">
                      <labels>
                        <label description="Reporting - Documentation" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell showlabel="false" auto="false" rowspan="6" colspan="2" id="{c2fb67a4-0924-486f-b58d-93987943d1d4}">
                            <labels>
                              <label description="" languagecode="1033" />
                            </labels>
                            <control id="IFRAME_Documentation" classid="{FD2A7985-3187-444e-908D-6624B21F69C0}">
                              <parameters>
                                <Url>about:blank</Url>
                                <PassParameters>false</PassParameters>
                                <Security>false</Security>
                                <Scrolling>auto</Scrolling>
                                <Border>true</Border>
                              </parameters>
                            </control>
                            <events>
                              <event name="onload" application="0">
                                <script><![CDATA[ ]]></script>
                                <dependencies />
                              </event>
                            </events>
                          </cell>
                        </row>
                        <row />
                        <row />
                        <row />
                        <row />
                        <row />
                      </rows>
                    </section>
                  </sections>
                </tab>
                <tab id="{0091ad0b-6557-de11-b6b8-001122334490}" IsUserDefined="1" locklevel="0">
                  <labels>
                    <label description="Quality And Risk" languagecode="1033" />
                  </labels>
                  <sections>
                    <section showlabel="false" showbar="false" locklevel="0" id="{50881302-af7a-de11-ab6f-001122334489}" IsUserDefined="1" layout="varwidth" columns="11" labelwidth="115" height="auto">
                      <labels>
                        <label description="Quality And Risk" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell showlabel="false" auto="true" rowspan="5" colspan="2" id="{3af707a9-5172-4ab1-b8ad-41f489df3b73}">
                            <labels>
                              <label description="" languagecode="1033" />
                            </labels>
                            <control id="IFRAME_QualityAndRisk" classid="{FD2A7985-3187-444e-908D-6624B21F69C0}">
                              <parameters>
                                <Url>about:blank</Url>
                                <PassParameters>false</PassParameters>
                                <Security>false</Security>
                                <Scrolling>auto</Scrolling>
                                <Border>true</Border>
                              </parameters>
                            </control>
                            <events>
                              <event name="onload" application="0">
                                <script><![CDATA[ ]]></script>
                                <dependencies />
                              </event>
                            </events>
                          </cell>
                        </row>
                        <row />
                        <row />
                        <row />
                        <row height="auto" />
                      </rows>
                    </section>
                  </sections>
                </tab>
                <tab id="{10d0392c-f37c-de11-9595-001122334489}" IsUserDefined="1" locklevel="0">
                  <labels>
                    <label description="Monitoring And Assessment" languagecode="1033" />
                  </labels>
                  <sections>
                    <section showlabel="false" showbar="false" locklevel="0" id="{5072e738-f37c-de11-9595-001122334489}" IsUserDefined="1" layout="varwidth" columns="11" labelwidth="115" height="auto">
                      <labels>
                        <label description="Monitoring And Assessment" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell showlabel="false" auto="true" rowspan="5" colspan="2" id="{0b81192f-c724-4932-85cf-bd931a2e6edc}">
                            <labels>
                              <label description="" languagecode="1033" />
                            </labels>
                            <control id="IFRAME_MonitoringAndAssessment" classid="{FD2A7985-3187-444e-908D-6624B21F69C0}">
                              <parameters>
                                <Url>about:blank</Url>
                                <PassParameters>false</PassParameters>
                                <Security>false</Security>
                                <Scrolling>auto</Scrolling>
                                <Border>true</Border>
                              </parameters>
                            </control>
                            <events>
                              <event name="onload" application="0">
                                <script><![CDATA[ ]]></script>
                                <dependencies />
                              </event>
                            </events>
                          </cell>
                        </row>
                        <row />
                        <row />
                        <row />
                        <row height="auto" />
                      </rows>
                    </section>
                  </sections>
                </tab>
                <tab id="{f0c61c03-6557-de11-b6b8-001122334490}" IsUserDefined="1" locklevel="0">
                  <labels>
                    <label description="Critical Issues" languagecode="1033" />
                  </labels>
                  <sections>
                    <section showlabel="false" showbar="false" locklevel="0" id="{80619566-ed80-de11-8cf2-001122334489}" IsUserDefined="1" layout="varwidth" columns="11" labelwidth="115" height="auto">
                      <labels>
                        <label description="Critical Issues" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell showlabel="false" auto="true" rowspan="5" colspan="2" id="{73fe81c1-0337-4e4b-bfd5-07755389367f}">
                            <labels>
                              <label description="" languagecode="1033" />
                            </labels>
                            <control id="IFRAME_CriticalIssues" classid="{FD2A7985-3187-444e-908D-6624B21F69C0}">
                              <parameters>
                                <Url>about:blank</Url>
                                <PassParameters>false</PassParameters>
                                <Security>false</Security>
                                <Scrolling>auto</Scrolling>
                                <Border>true</Border>
                              </parameters>
                            </control>
                            <events>
                              <event name="onload" application="0">
                                <script><![CDATA[ ]]></script>
                                <dependencies />
                              </event>
                            </events>
                          </cell>
                        </row>
                        <row />
                        <row />
                        <row />
                        <row height="auto" />
                      </rows>
                    </section>
                  </sections>
                </tab>
                <tab id="{902ff7a7-ddea-4df9-9990-6a33903c67c7}" IsUserDefined="0">
                  <labels>
                    <label description="Notes" languagecode="1033" />
                  </labels>
                  <sections>
                    <section showlabel="true" showbar="true" locklevel="1" id="{ac9e5e1e-ec49-4793-9edf-5d0d190cb209}" IsUserDefined="0" height="auto">
                      <labels>
                        <label description="Notes" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell colspan="2" showlabel="false" rowspan="5" auto="true" id="{3709d4f4-825d-4770-89e7-dc12ee9022e8}">
                            <labels>
                              <label description="" languagecode="1033" />
                            </labels>
                            <control id="notescontrol" classid="{06375649-c143-495e-a496-c962e5b4488e}" />
                          </cell>
                        </row>
                        <row />
                        <row />
                        <row />
                        <row height="auto" />
                      </rows>
                    </section>
                    <section showlabel="false" showbar="false" locklevel="0" id="{e07ac11b-c667-de11-b3a3-001122334489}" IsUserDefined="1" layout="varwidth" columns="11" labelwidth="115">
                      <labels>
                        <label description="Administrative" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{e96f1965-620d-473e-9348-ce8535379cfe}">
                            <labels>
                              <label description="Last Q&amp;R Record" languagecode="1033" />
                            </labels>
                            <control id="ca_lastqrrecordid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_lastqrrecordid" disabled="false">
                              <parameters>
                                <AutoResolve>true</AutoResolve>
                              </parameters>
                            </control>
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{99927e04-8f8b-4445-9b92-c8ce12b1d945}">
                            <labels>
                              <label description="Owner" languagecode="1033" />
                            </labels>
                            <control id="ownerid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ownerid" disabled="false">
                              <parameters>
                                <AutoResolve>true</AutoResolve>
                              </parameters>
                            </control>
                          </cell>
                        </row>
                        <row>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{60291177-1531-4c8b-b4f7-3aaa3d9b1fbb}">
                            <labels>
                              <label description="Last Monitoring Assessment" languagecode="1033" />
                            </labels>
                            <control id="ca_lastmonitoringassessmentid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ca_lastmonitoringassessmentid" disabled="false">
                              <parameters>
                                <AutoResolve>true</AutoResolve>
                              </parameters>
                            </control>
                          </cell>
                          <cell auto="false" showlabel="true" locklevel="0" rowspan="1" colspan="1" id="{1f95a49f-e561-4a90-ab53-f2ca0cf48792}">
                            <labels>
                              <label description="Helper Field" languagecode="1033" />
                            </labels>
                            <control id="ca_helperfield" classid="{67FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED}" datafieldname="ca_helperfield" disabled="false" />
                          </cell>
                        </row>
                      </rows>
                    </section>
                  </sections>
                </tab>
              </tabs>
              <events>
                <event name="onload" application="false" active="true">
                  <script><![CDATA[/*===============================
	Define TestEntity status enum
*/
TestEntityStatusEnum = function() {
	this.ConceptDraft = 3,
	this.ConceptPendingApproval = 4,
	this.ConceptApproved = 5,
	this.TestEntityDraft = 6,
	this.TestEntityPendingApproval = 7,
	this.TestEntityApproved = 8
}
var TestEntityStatus = new TestEntityStatusEnum();
/* End of TestEntity status definition */

var _programmeID = null;
if (crmForm.all.ca_programmeid.DataValue != null &amp;&amp; crmForm.all.ca_programmeid.DataValue[0] != null)
{
  _programmeID = crmForm.all.ca_programmeid.DataValue[0].id;
}

FormOverviewTabHandler();

function FormOverviewTabHandler()
{   
    HandleProgrammeChange();
    HandleProgrammeObjectiveChange();
    HadleCSOChange();
    HandleSPF();
    
    crmForm.all.ca_programmeid.attachEvent(&quot;onchange&quot;,HandleProgrammeChange);
    crmForm.all.ca_programmeobjectiveid.attachEvent(&quot;onchange&quot;,HandleProgrammeObjectiveChange);
    crmForm.all.ca_csoid.attachEvent(&quot;onchange&quot;,HadleCSOChange);
    crmForm.all.ca_TestEntitytype1id.attachEvent(&quot;onchange&quot;,SetTestEntityTypeFetch);
    crmForm.all.ca_TestEntitytype2id.attachEvent(&quot;onchange&quot;,SetTestEntityTypeFetch);
    crmForm.all.ca_TestEntitytype3id.attachEvent(&quot;onchange&quot;, SetTestEntityTypeFetch);

    crmForm.all.ca_primarylocationid.attachEvent(&quot;onchange&quot;, SetLocationFetch);
    crmForm.all.ca_location2id.attachEvent(&quot;onchange&quot;, SetLocationFetch);
    crmForm.all.ca_location3id.attachEvent(&quot;onchange&quot;, SetLocationFetch);
    
    crmForm.all.ca_isspf.attachEvent(&quot;onchange&quot;,HandleSPF);
    
    function HandleSPF()
    {
        var fundRaisinf = crmForm.all.ca_issutableforfundraising;
        if (crmForm.all.ca_isspf!=null &amp;&amp; crmForm.all.ca_isspf.DataValue!=null &amp;&amp; crmForm.all.ca_isspf.DataValue==true)
        {
            fundRaisinf.DataValue = false;
            fundRaisinf.Disabled = true;
            fundRaisinf.ForceSubmit = true;
        }
        else
        {
            fundRaisinf.Disabled = false;
        }
    }
    
    
    function HandleProgrammeChange()
    {
        if (crmForm.all.ca_programmeid.DataValue == null || crmForm.all.ca_programmeid.DataValue[0] == null)
        {
            crmForm.all.ca_TestEntitymanagerid.DataValue = null;
            crmForm.all.ca_TestEntitymanagerid.Disabled = true;
        }
        else
        {
            crmForm.all.ca_TestEntitymanagerid.Disabled = false;
            if (crmForm.all.ca_programmeid.DataValue[0].id != _programmeID)
            {
                _programmeID = crmForm.all.ca_programmeid.DataValue[0].id;
                crmForm.all.ca_TestEntitymanagerid.DataValue = null;
                SetTestEntityProposerFilteredLookup();
            }
        }

        var poField = crmForm.all.ca_programmeobjectiveid;
        var locPimField = crmForm.all.ca_primarylocationid;
        var loc2Field = crmForm.all.ca_location2id;
        var loc3Field = crmForm.all.ca_location3id;
            
        var progField = crmForm.all.ca_programmeid;
        if (progField.IsDirty)
        {
            poField.DataValue = null;
            locPimField.DataValue = null;
            loc2Field.DataValue = null;
            loc3Field.DataValue = null;
        }
        
        if (progField.DataValue == null || progField.DataValue[0]==null)
        {
            poField.DataValue = null;
            poField.Disabled = true;
            poField.ForceSubmit = true;

            locPimField.DataValue = null;
            locPimField.Disabled = true;
            locPimField.ForceSubmit = true;

            loc2Field.DataValue = null;
            loc2Field.Disabled = true;
            loc2Field.ForceSubmit = true;

            loc3Field.DataValue = null;
            loc3Field.Disabled = true;
            loc3Field.ForceSubmit = true;
        }
        else
        {
            poField.Disabled = false;
            locPimField.Disabled = false;
            loc2Field.Disabled = false;
            loc3Field.Disabled = false;
            
            //Filtered PO
            var fetchXML = '&lt;fetch mapping=&quot;logical&quot;&gt;&lt;entity name=&quot;ca_programmeobjective&quot;&gt;&lt;filter&gt;&lt;condition attribute=&quot;ca_programmeid&quot; operator=&quot;eq&quot; value=&quot;' + progField.DataValue[0].id + '&quot; /&gt;&lt;/filter&gt;&lt;/entity&gt;&lt;/fetch&gt;';
            // Ensure that search box is not visible in a lookup dialog
            poField.lookupbrowse = 1; 
            // Pass fetch xml through search value parameter
            poField.AddParam(&quot;search&quot;, fetchXML);

            
            
            //Filtered Locations
            //Getting Programme Location
            var service = new Ascentium_CrmService();
            var asCols = [&quot;ca_locationid&quot;];
            var beRetrievedProgramme = service.Retrieve(&quot;ca_programme&quot;, progField.DataValue[0].id, asCols);
            if (beRetrievedProgramme != null &amp;&amp; beRetrievedProgramme.attributes[&quot;ca_locationid&quot;] != null)
            {
                _programmeLocationID = beRetrievedProgramme.attributes[&quot;ca_locationid&quot;].value;
                SetLocationFetch();
            }
        }
        
        HandleProgrammeObjectiveChange();
    }

    var _programmeLocationID = null;

    function SetLocationFetch()
    {

        var locPimField = crmForm.all.ca_primarylocationid;
        var loc2Field = crmForm.all.ca_location2id;
        var loc3Field = crmForm.all.ca_location3id;


        if (_programmeLocationID != null)
        {
            // Retrieve all 2-nd level locations for current primary location
            var oService = new Ascentium_CrmService();

            var sLocationsOfSecondLevelFetchXml = '&lt;fetch mapping=&quot;logical&quot;&gt;&lt;entity name=&quot;ca_location&quot;&gt;&lt;attribute name=&quot;ca_locationid&quot; /&gt;&lt;filter&gt;&lt;condition attribute=&quot;ca_regionid&quot; operator=&quot;eq&quot; value=&quot;' + _programmeLocationID + '&quot; /&gt;&lt;/filter&gt;&lt;/entity&gt;&lt;/fetch&gt;';

            var aoFetchLocationsOfSecondLevelResults = oService.Fetch(sLocationsOfSecondLevelFetchXml); 
            var iNumOfLocations = aoFetchLocationsOfSecondLevelResults.length;
            var sLocationOfSecondLevelFilter = &quot;&quot;;

            if (iNumOfLocations &gt; 0)
            {
              for (i = 0; i&lt; iNumOfLocations; i++)
              {
                sLocationOfSecondLevelFilter += '&lt;condition attribute=&quot;ca_regionid&quot; operator=&quot;eq&quot; value=&quot;' + aoFetchLocationsOfSecondLevelResults[i].attributes[&quot;ca_locationid&quot;].value + '&quot; /&gt;';
              }
            }

            SetPrimaryLocation(_programmeLocationID);

            var exlCondition = &quot;&quot;;
            if (locPimField.DataValue != null)
                exlCondition = exlCondition + '&lt;filter&gt;&lt;condition attribute=&quot;ca_locationid&quot; operator=&quot;ne&quot; value=&quot;' + locPimField.DataValue[0].id + '&quot; /&gt;&lt;/filter&gt;';

            if (loc2Field.DataValue != null)
                exlCondition = exlCondition + '&lt;filter&gt;&lt;condition attribute=&quot;ca_locationid&quot; operator=&quot;ne&quot; value=&quot;' + loc2Field.DataValue[0].id +'&quot; /&gt;&lt;/filter&gt;';

            if (loc3Field.DataValue != null)
                exlCondition = exlCondition + '&lt;filter&gt;&lt;condition attribute=&quot;ca_locationid&quot; operator=&quot;ne&quot; value=&quot;' + loc3Field.DataValue[0].id + '&quot; /&gt;&lt;/filter&gt;';

            var fetchXML = '&lt;fetch mapping=&quot;logical&quot;&gt;&lt;entity name=&quot;ca_location&quot;&gt;&lt;filter&gt;&lt;filter type=&quot;or&quot;&gt;&lt;condition attribute=&quot;ca_locationid&quot; operator=&quot;eq&quot; value=&quot;' + _programmeLocationID + '&quot; /&gt;&lt;condition attribute=&quot;ca_regionid&quot; operator=&quot;eq&quot; value=&quot;' + _programmeLocationID + '&quot; /&gt;' + sLocationOfSecondLevelFilter + '&lt;/filter&gt;' + exlCondition + ' &lt;/filter&gt;&lt;/entity&gt;&lt;/fetch&gt;';

            // Ensure that search box is not visible in a lookup dialog
            locPimField.lookupbrowse = 1;
            loc2Field.lookupbrowse = 1;
            loc3Field.lookupbrowse = 1;

            // Pass fetch xml through search value parameter
            locPimField.AddParam(&quot;search&quot;, fetchXML);
            loc2Field.AddParam(&quot;search&quot;, fetchXML);
            loc3Field.AddParam(&quot;search&quot;, fetchXML);

        }
    }


    //=====================================================
    // Bug 1763
    //=====================================================
    function SetPrimaryLocation(sPrimaryLocationId)
    {
      if (typeof(sPrimaryLocationId) != &quot;undefined&quot; &amp;&amp; sPrimaryLocationId != null &amp;&amp; sPrimaryLocationId != &quot;&quot;)
      {
        var service = new Ascentium_CrmService();
        var asCols = [&quot;ca_name&quot;, &quot;ca_regionid&quot;, &quot;ca_locationid&quot;];
        var beRetrievedLocation = service.Retrieve(&quot;ca_location&quot;, sPrimaryLocationId, asCols);

        if (beRetrievedLocation != null)
        {
          var sLocationName = beRetrievedLocation.attributes[&quot;ca_name&quot;].value;

          var aPrimaryLocationLookupData = new Array();
          var aPrimaryLocationLookupItem = new Object();
          aPrimaryLocationLookupItem.id = sPrimaryLocationId;
          aPrimaryLocationLookupItem.typename = &quot;ca_location&quot;;
          aPrimaryLocationLookupItem.name = sLocationName;
          aPrimaryLocationLookupData[0] = aPrimaryLocationLookupItem;
          crmForm.all.ca_primarylocationid.DataValue = aPrimaryLocationLookupData;
        }
      }
    }  
    //=====================================================

    function HandleProgrammeObjectiveChange()
    {
        var csoField = crmForm.all.ca_csoid;
        var conditions =&quot;&quot;;
        var enableTypes = false;
            
        var poField = crmForm.all.ca_programmeobjectiveid;
        if (poField.IsDirty)
        {
            csoField.DataValue = null;
        }
        
        
        if (poField.DataValue == null || poField.DataValue[0]==null)
        {
            csoField.DataValue = null;
            csoField.Disabled = true;
            csoField.ForceSubmit = true;
            SetMainStreamFlag();
        }
        else
        {
            //Setting Mainstream Flag
            var pId = poField.DataValue[0].id;
	        //Create the Ascentium_CrmService object
	        var service = new Ascentium_CrmService();
	        //Retrieve an entity asynchronously by passing a callback function to the Retrieve method
	        var asCols = [&quot;ca_programmeobjectivetype&quot;, &quot;ca_csopriority1id&quot;, &quot;ca_csopriority2id&quot;, &quot;ca_csopriority3id&quot;];
	        var result = service.Retrieve(&quot;ca_programmeobjective&quot;, pId, asCols);
	        SetMainStreamFlag(result);
            /////
        
            csoField.Disabled = false;
            
            if (result!=null &amp;&amp; result.attributes[&quot;ca_csopriority1id&quot;]!=null)
            {
                conditions = conditions + '&lt;condition attribute=&quot;ca_corporatestrategyobjectiveid&quot; operator=&quot;eq&quot; value=&quot;'+result.attributes[&quot;ca_csopriority1id&quot;].value+'&quot; /&gt;'
            }
            if (result!=null &amp;&amp; result.attributes[&quot;ca_csopriority2id&quot;]!=null)
            {
                conditions = conditions + '&lt;condition attribute=&quot;ca_corporatestrategyobjectiveid&quot; operator=&quot;eq&quot; value=&quot;'+result.attributes[&quot;ca_csopriority2id&quot;].value+'&quot; /&gt;'
            }
            if (result!=null &amp;&amp; result.attributes[&quot;ca_csopriority3id&quot;]!=null)
            {
                conditions = conditions + '&lt;condition attribute=&quot;ca_corporatestrategyobjectiveid&quot; operator=&quot;eq&quot; value=&quot;'+result.attributes[&quot;ca_csopriority3id&quot;].value+'&quot; /&gt;'
            }
            
            if (conditions!=&quot;&quot;)
            {
                enableTypes = true;
                var fetchXML = '&lt;fetch mapping=&quot;logical&quot; distinct=&quot;true&quot;&gt;&lt;entity name=&quot;ca_corporatestrategyobjective&quot;&gt;&lt;filter type=&quot;or&quot;&gt;' + conditions + '&lt;/filter&gt;&lt;/entity&gt;&lt;/fetch&gt;';
                
                // Ensure that search box is not visible in a lookup dialog
                csoField.lookupbrowse = 1; 
                
                // Pass fetch xml through search value parameter 
                csoField.AddParam(&quot;search&quot;, fetchXML);
            }
        }
        
        HadleCSOChange(enableTypes);
    }

    function SetMainStreamFlag(beResult)
    {
        var isMainStream = false;
        if (beResult!=null &amp;&amp; beResult.attributes[&quot;ca_programmeobjectivetype&quot;]!=null)
        {
            isMainStream = beResult.attributes[&quot;ca_programmeobjectivetype&quot;].value ==2;
        }
        crmForm.all.ca_mainstreamingobjective.DataValue = isMainStream;
        crmForm.all.ca_mainstreamingobjective.ForceSubmit = true;
    }
    
    function HadleCSOChange(enableTypes)
    {
        
        var ptojectType1Field = crmForm.all.ca_TestEntitytype1id;
        var ptojectType2Field = crmForm.all.ca_TestEntitytype2id;
        var ptojectType3Field = crmForm.all.ca_TestEntitytype3id;
            
        var csoField = crmForm.all.ca_csoid;
        
        if (csoField.IsDirty)
        {
            ptojectType1Field.DataValue = null;
            ptojectType2Field.DataValue = null;
            ptojectType3Field.DataValue = null;
            
            ptojectType1Field.ForceSubmit = true;
            ptojectType2Field.ForceSubmit = true;
            ptojectType3Field.ForceSubmit = true;
        }
        
        
        if (csoField.DataValue == null || csoField.DataValue[0]==null || (enableTypes!=null &amp;&amp; enableTypes==false) )
        {
            _csoObjectiveArea = null;
            
            ptojectType1Field.DataValue = null;
            ptojectType2Field.DataValue = null;
            ptojectType3Field.DataValue = null;
            
            ptojectType1Field.Disabled = true;
            ptojectType2Field.Disabled = true;
            ptojectType3Field.Disabled = true;
            
            ptojectType1Field.ForceSubmit = true;
            ptojectType2Field.ForceSubmit = true;
            ptojectType3Field.ForceSubmit = true;
        }
        else
        {
            ptojectType1Field.Disabled = false;
            ptojectType2Field.Disabled = false;
            ptojectType3Field.Disabled = false;
            var service = new Ascentium_CrmService();
            //Retrieve an entity asynchronously by passing a callback function to the Retrieve method
	        var asCols = [&quot;ca_objectivearea&quot;];
	        var results = service.Retrieve(&quot;ca_corporatestrategyobjective&quot;, csoField.DataValue[0].id, asCols);
	        if (results!=null &amp;&amp; results.attributes[&quot;ca_objectivearea&quot;]!=null)
	        {
	            
	            _csoObjectiveArea = results.attributes[&quot;ca_objectivearea&quot;].name.toLowerCase();
	        }
            /////


            SetTestEntityTypeFetch();
        }
    }
    var _csoObjectiveArea = null;
    function SetTestEntityTypeFetch()
    {
        var ptojectType1Field = crmForm.all.ca_TestEntitytype1id;
        var ptojectType2Field = crmForm.all.ca_TestEntitytype2id;
        var ptojectType3Field = crmForm.all.ca_TestEntitytype3id;
            
        var csoField = crmForm.all.ca_csoid;
         if (_csoObjectiveArea!=null)
        {
                        
            var extaCondition = &quot;&quot;;
            if (ptojectType1Field.DataValue!=null)
                extaCondition = extaCondition  + '&lt;condition attribute=&quot;ca_csocapTestEntitytypeid&quot; operator=&quot;ne&quot; value=&quot;' + ptojectType1Field.DataValue[0].id + '&quot; /&gt;';
                
            if (ptojectType2Field.DataValue!=null)
                extaCondition = extaCondition  + '&lt;condition attribute=&quot;ca_csocapTestEntitytypeid&quot; operator=&quot;ne&quot; value=&quot;' + ptojectType2Field.DataValue[0].id + '&quot; /&gt;';
                
            if (ptojectType3Field.DataValue!=null)
                extaCondition = extaCondition  + '&lt;condition attribute=&quot;ca_csocapTestEntitytypeid&quot; operator=&quot;ne&quot; value=&quot;' + ptojectType3Field.DataValue[0].id + '&quot; /&gt;';
            
            
            var fetchXML = '&lt;fetch mapping=&quot;logical&quot; distinct=&quot;true&quot;&gt;&lt;entity name=&quot;ca_csocapTestEntitytype&quot;&gt;&lt;filter&gt;&lt;condition attribute=&quot;ca_' + _csoObjectiveArea + '&quot; operator=&quot;eq&quot; value=&quot;1&quot; /&gt;' + extaCondition + '&lt;/filter&gt;&lt;/entity&gt;&lt;/fetch&gt;';
            
            // Ensure that search box is not visible in a lookup dialog
            ptojectType1Field.lookupbrowse = 1; 
            ptojectType2Field.lookupbrowse = 1; 
            ptojectType3Field.lookupbrowse = 1; 
            
            // Pass fetch xml through search value parameter 
            ptojectType1Field.AddParam(&quot;search&quot;, fetchXML); 
            ptojectType2Field.AddParam(&quot;search&quot;, fetchXML); 
            ptojectType3Field.AddParam(&quot;search&quot;, fetchXML);
        }
    }
}


LoadViewInFrame(&quot;IFRAME_Grant&quot;, &quot;ca_ca_TestEntity_ca_grant&quot;, &quot;ca_ca_TestEntity_ca_grant&quot;, GrantsGridLoaded, null, null, null,  &quot;ca_TestEntityid&quot;, &quot;ca_TestEntity&quot;);
function RegisterGrantsGridEvents()
{
        var topGrid= crmForm['ca_ca_TestEntity_ca_grant'];
        var totalGrantsField = crmForm.all.ca_grants_tc;
        var summofGrants = 0;
        topGrid.onrefresh = RegisterGrantsGridEvents;

        var oGrid = topGrid.InnerGrid;
        oGrid.onselectionchange=OnGrantSelectedChanged;
        for(var row = 0; row &lt; oGrid.rows.length; row++)
        {
              if(oGrid.rows[row].cells[5]!=null &amp;&amp; oGrid.rows[row].cells[5].innerText != &quot;&quot;)
                summofGrants = summofGrants + LocStringToFloat(oGrid.rows[row].cells[5].innerText);
        }
        totalGrantsField.value = AddFormatting(summofGrants,2,false);

        if (oGrid.SelectedRecords.length&gt;0)
        {
            var gid = oGrid.rows[0].oid;

            LoadViewInFrame(&quot;IFRAME_Transfer&quot;,&quot;ca_ca_grant_ca_transfer&quot;,&quot;ca_ca_grant_ca_transfer&quot;, HideAddExisitngTransfer, gid, oGrid.oname, null, &quot;ca_grantid&quot;, &quot;ca_grant&quot;);
        }
}
var _selectedGrantID =&quot;&quot;;

function GrantsGridLoaded()
{
    
    if (event.srcElement.readyState == &quot;complete&quot; ||  event.srcElement.readyState == &quot;loaded&quot; )
    {
        RegisterGrantsGridEvents();
    }

}

function OnGrantSelectedChanged(event)
{
    var oGrid = crmForm['ca_ca_TestEntity_ca_grant'].InnerGrid;
    if (oGrid.SelectedRecords.length&gt;0)
    {
        var newSelctedID = oGrid.SelectedRecords[0][0];
        if (newSelctedID != _selectedGrantID)
        {
            _selectedGrantID = newSelctedID;
            LoadViewInFrame(&quot;IFRAME_Transfer&quot;,&quot;ca_ca_grant_ca_transfer&quot;,&quot;ca_ca_grant_ca_transfer&quot;, HideAddExisitngTransfer, newSelctedID, oGrid.oname, null,  &quot;ca_grantid&quot;, &quot;ca_grant&quot;);
        }
    }
}

function HideAddExisitngTransfer()
{
    HideButtonOnGrid(&quot;IFRAME_Transfer&quot;,[&quot;Add existing Transfer to this record&quot;]);
}


/*==============================
	Validate that all fields required fields are populated befor submitting for approval 
	The Years in TestEntity field will display current year/number of TestEntity years dates specified in the Start and End Dates
	Task: 1354
*/
var startDateField = new CrmField(&quot;ca_TestEntitystartdate&quot;);
var endDateField = new CrmField(&quot;ca_TestEntityenddate&quot;);
CalculateYearsInTestEntity = function()
{
	if (!(startDateField.Field.DataValue &amp;&amp; endDateField.Field.DataValue)) 
		return; // Start date or end date is empty - nothing to calculate
	
	var yearsInTestEntity = new CrmField(&quot;ca_yearsinaTestEntity&quot;);
	
	var startDateTicks = Date.parse(startDateField.Field.DataValue);
	var endDateTicks = Date.parse(endDateField.Field.DataValue);
	if (startDateTicks &gt; endDateTicks)
	{
		alert(&quot;Start date is later than end date!&quot;);
		yearsInTestEntity.Field.DataValue = 0;
		return;
	}
	
	var startDate = new Date();
	startDate.setTime(startDateTicks);
	var endDate = new Date();
	endDate.setTime(endDateTicks);
	
	yearsInTestEntity.Field.DataValue = endDate.getFullYear() - startDate.getFullYear();
}
startDateField.OnChange(CalculateYearsInTestEntity);
endDateField.OnChange(CalculateYearsInTestEntity);
CalculateYearsInTestEntity();

window.SubmitTestEntity = function()
{
	// Get current TestEntity status first
	var statusField = new CrmField(&quot;ca_status&quot;);
	var currentStatus = statusField.Field.DataValue;

	// Validate required fields
	if (currentStatus != TestEntityStatus.ConceptDraft
		&amp;&amp; currentStatus != TestEntityStatus.ConceptPendingApproval)
	{
		// Require grants
		if (!HasGrants())
		{
			alert(&quot;Add a grant before submit for approval&quot;);
			return;
		}

		// Require Transfers
		if (!HasTransfers())
		{
			alert(&quot;Add a Transfer before submit for approval&quot;);
			return;
		}
	}

	var recomendedFieldIds = [&quot;ca_programmeid&quot;, &quot;ca_partnerid&quot;, &quot;ca_programmeobjectiveid&quot;, &quot;ca_TestEntitystartdate&quot;,
		&quot;ca_TestEntityenddate&quot;, &quot;ca_disasteraffectedtargetgroup&quot;];

	// Require all recommended fields 	
	for (var i = 0; i &lt; recomendedFieldIds.length; i++)
	{
		var field = new CrmField(recomendedFieldIds[i]);
		field.Required();
	}

	// Change status of the entity to pending
	if (currentStatus == TestEntityStatus.ConceptDraft)
		statusField.Field.DataValue = TestEntityStatus.ConceptPendingApproval;
	else if (currentStatus == TestEntityStatus.TestEntityDraft)
		statusField.Field.DataValue = TestEntityStatus.TestEntityPendingApproval;
	
	var saveResult = crmForm.Save();
//	if (saveResult == false)
//	{
//		// All required fields are not required any more
//		for (var i = 0; i &lt; recomendedFieldIds.length; i++)
//		{
//			var field = new CrmField(recomendedFieldIds[i]);
//			field.NotRequired();
//		}
//		return;
//	}

	
	
//	crmForm.Save();
}

HasGrants = function()
{
	if (crmForm.FormType != UPDATE_FORM)
		return false;
	
	//Creating instance of the CrmService helper class
	var service = new Ascentium_CrmService();
	
	//Retrieving number of the grants already created by the user
	var fetchXml = '&lt;fetch mapping=&quot;logical&quot;&gt;&lt;entity name=&quot;ca_grant&quot;&gt;&lt;attribute name=&quot;ca_TestEntityid&quot; /&gt;' + 
		'&lt;filter&gt;&lt;condition attribute=&quot;ca_TestEntityid&quot; operator=&quot;eq&quot; value=&quot;'+ crmForm.ObjectId +'&quot; /&gt;' +
		'&lt;/filter&gt;&lt;/entity&gt;&lt;/fetch&gt;'; 
	var results = service.Fetch(fetchXml); 
	return results.length &gt; 0;
}

HasTransfers = function()
{
	if (crmForm.FormType != UPDATE_FORM)
		return false;
	
	//Creating instance of the CrmService helper class
	var service = new Ascentium_CrmService();
	
	//Retrieving number of transfers already created by the user
	var fetchXml = '&lt;fetch mapping=&quot;logical&quot;&gt;&lt;entity name=&quot;ca_transfer&quot;&gt;&lt;attribute name=&quot;ca_TestEntityid&quot; /&gt;' + 
		'&lt;filter&gt;&lt;condition attribute=&quot;ca_TestEntityid&quot; operator=&quot;eq&quot; value=&quot;'+ crmForm.ObjectId +'&quot; /&gt;' +
		'&lt;/filter&gt;&lt;/entity&gt;&lt;/fetch&gt;';
	var results = service.Fetch(fetchXml); 
	return results.length &gt; 0;
}
HideShowSaveAsConceptOrTestEntityButtons();
function HideShowSaveAsConceptOrTestEntityButtons() {
	var statusField = new CrmField(&quot;ca_status&quot;);
	var currentStatus = statusField.Field.DataValue;

	if (currentStatus != TestEntityStatus.ConceptApproved || currentStatus != TestEntityStatus.ConceptDraft) {
		ShowHideEntityIsvCustomMenuItem(&quot;Save TestEntity Concept as TestEntity&quot;, false);
	}
	if (currentStatus != TestEntityStatus.TestEntityDraft) {
		ShowHideEntityIsvCustomMenuItem(&quot;Save TestEntity as Concept&quot;, false);
	}

	if (currentStatus != TestEntityStatus.TestEntityDraft &amp;&amp; currentStatus != TestEntityStatus.ConceptDraft) {
		ShowHideEntityIsvCustomMenuItem(&quot;TestEntity Actions&quot;, false);
	}

}

window.SaveAsConcept = function() 
{
	crmForm.all.ca_status.DataValue = TestEntityStatus.ConceptDraft;
	crmForm.Save();
}

window.SaveConceptAsTestEntity = function()
{
	crmForm.all.ca_status.DataValue = TestEntityStatus.TestEntityDraft;
	crmForm.Save();
}
/* End task */
/*=============================================================
	Task: 1370
	Show 'Monitoring' and 'Closure Activities' tabs after approval
*/
HideShowMonitoringAndClosureActivitiesTabs = function()
{
	var status = parseInt((new CrmField('ca_status')).Field.DataValue);
	if (status != TestEntityStatus.TestEntityApproved &amp;&amp; status != TestEntityStatus.ConceptApproved)
	{
		HideTab('Closure Activities');
		HideTab('Monitoring');
	}
}
HideShowMonitoringAndClosureActivitiesTabs();

LoadViewInFrame(&quot;IFRAME_Documentation&quot;, &quot;ca_TestEntity_ca_documentation&quot;, &quot;ca_TestEntity_ca_documentation&quot;);
/* End of Task: 1370 */

/*========================================
	Task 1521: When user selectes Suitable for offsetting flag new field &quot;Offsetting Rating&quot; must become visible 
*/
var suitable = new CrmField(&quot;ca_suitableforoffsetting&quot;);
SetOffsettingRating = function()
{
	var offsettingRating = new CrmField(&quot;ca_offsettingrating&quot;);
	if (suitable.Field.DataValue)
		offsettingRating.ShowCell();
	else offsettingRating.HideCell();
}
SetOffsettingRating();
suitable.OnChange(SetOffsettingRating);
/* End task 1521 */
/*=======================================
	The Seconder filtered lookup will meet the conditions below: 
		Risk Rating = Super High: Proposer's Head of Division 
		Risk Rating = High: Staff Member with Level 1 Authority 
		Risk Rating = Medium: Staff Member with Level 2 Authority 
		Risk Rating = Low: Staff Member with Level 3 Authority 
	Task: 1371
*/
ChoseSeconder = function()
{
  var seconderField = new CrmField(&quot;ca_TestEntityseconderid&quot;);
  if (!crmForm.ObjectId)
  {
    seconderField.Disable();
    return;
  }

  var sFetchXml = &quot;&quot;;
  
  // Super High Risk
  if (crmForm.all.ca_TestEntityriskraiting.DataValue == 4)
  {
    sFetchXml ='&lt;fetch mapping=&quot;logical&quot;&gt;&lt;entity name=&quot;systemuser&quot;&gt;&lt;attribute name=&quot;systemuserid&quot; /&gt;&lt;link-entity name=&quot;ca_division&quot; from=&quot;owninguser&quot; to=&quot;systemuserid&quot;&gt;&lt;link-entity name=&quot;ca_unit&quot; from=&quot;ca_divisionid&quot; to=&quot;ca_divisionid&quot;&gt;&lt;link-entity name=&quot;ca_programme&quot; from=&quot;ca_unitid&quot; to=&quot;ca_unitid&quot;&gt;&lt;link-entity name=&quot;ca_TestEntity&quot; from=&quot;ca_programmeid&quot; to=&quot;ca_programmeid&quot;&gt;&lt;filter&gt;&lt;condition attribute=&quot;ca_TestEntityid&quot; operator=&quot;eq&quot; value=&quot;' + crmForm.ObjectId + '&quot; /&gt;&lt;/filter&gt;&lt;/link-entity&gt;&lt;/link-entity&gt;&lt;/link-entity&gt;&lt;/link-entity&gt;&lt;/entity&gt;&lt;/fetch&gt;';
  }

  // High Risk
  if (crmForm.all.ca_TestEntityriskraiting.DataValue == 3)
  {
    sFetchXml ='&lt;fetch mapping=&quot;logical&quot;&gt;&lt;entity name=&quot;systemuser&quot;&gt;&lt;attribute name=&quot;systemuserid&quot; /&gt;&lt;link-entity name=&quot;systemuserroles&quot; from=&quot;systemuserid&quot; to=&quot;systemuserid&quot;&gt;&lt;link-entity name=&quot;role&quot; from=&quot;roleid&quot; to=&quot;roleid&quot;&gt;&lt;filter&gt;&lt;condition attribute=&quot;name&quot; operator=&quot;eq&quot; value=&quot;PromiseLevel1Authority&quot; /&gt;&lt;/filter&gt;&lt;/link-entity&gt;&lt;/link-entity&gt;&lt;/entity&gt;&lt;/fetch&gt;';
  }

  // Medium Risk
  if (crmForm.all.ca_TestEntityriskraiting.DataValue == 2)
  {
    sFetchXml ='&lt;fetch mapping=&quot;logical&quot;&gt;&lt;entity name=&quot;systemuser&quot;&gt;&lt;attribute name=&quot;systemuserid&quot; /&gt;&lt;link-entity name=&quot;systemuserroles&quot; from=&quot;systemuserid&quot; to=&quot;systemuserid&quot;&gt;&lt;link-entity name=&quot;role&quot; from=&quot;roleid&quot; to=&quot;roleid&quot;&gt;&lt;filter&gt;&lt;condition attribute=&quot;name&quot; operator=&quot;eq&quot; value=&quot;PromiseLevel2Authority&quot; /&gt;&lt;/filter&gt;&lt;/link-entity&gt;&lt;/link-entity&gt;&lt;/entity&gt;&lt;/fetch&gt;';
  }

  // Low Risk
  if (crmForm.all.ca_TestEntityriskraiting.DataValue == 1)
  {
    sFetchXml ='&lt;fetch mapping=&quot;logical&quot;&gt;&lt;entity name=&quot;systemuser&quot;&gt;&lt;attribute name=&quot;systemuserid&quot; /&gt;&lt;link-entity name=&quot;systemuserroles&quot; from=&quot;systemuserid&quot; to=&quot;systemuserid&quot;&gt;&lt;link-entity name=&quot;role&quot; from=&quot;roleid&quot; to=&quot;roleid&quot;&gt;&lt;filter&gt;&lt;condition attribute=&quot;name&quot; operator=&quot;eq&quot; value=&quot;PromiseLevel3Authority&quot; /&gt;&lt;/filter&gt;&lt;/link-entity&gt;&lt;/link-entity&gt;&lt;/entity&gt;&lt;/fetch&gt;';
  }

  if (sFetchXml != &quot;&quot;)
  {
    seconderField.Field.lookupbrowse = 1;
    seconderField.Field.AddParam(&quot;search&quot;, sFetchXml);
  }
}

ChoseSeconder();

/* End Task: 1371 */

/*  */

/**/


//==========================================================================================
// Iteration 3 - Quality And Risk 
//==========================================================================================

FormDesignForIteration3();
LoadQualityAndRiskForm();
LoadMonitoringAndAssessmentForm();

function LoadQualityAndRiskForm()
{
  if (crmForm.FormType == CREATE_FORM)
  {
    crmForm.all[&quot;IFRAME_QualityAndRisk&quot;].src = CRM_URL + &quot;/ISV/Ascentium/CustomPages/IframeSplashPage.aspx&quot;;
  }
  //else if (crmForm.FormType == UPDATE_FORM)
  else
  {
    var sQualityAndRiskId = GetLastQualityAndRiskId();
    if (sQualityAndRiskId != null)  
    {
      LoadEntityTabInIFrame(&quot;IFRAME_QualityAndRisk&quot;, &quot;ca_qualityandrisk&quot;, sQualityAndRiskId, 0, QualityAndRiskFrameLoaded, &quot;TestEntityid=&quot; + crmForm.ObjectId);

      if (IsOnline())
      {
        var service = new Ascentium_CrmService();
        
        var beQualityAndRiskToUpdate = new BusinessEntity(&quot;ca_qualityandrisk&quot;);
        beQualityAndRiskToUpdate.attributes[&quot;ca_qualityandriskid&quot;] = sQualityAndRiskId;
        beQualityAndRiskToUpdate.attributes[&quot;statuscode&quot;] = 3;
        service.Update(beQualityAndRiskToUpdate);

        if (crmForm.all.ca_TestEntityriskraiting.DataValue == null)
        {
          window.FirstTestEntityRiskRating = 0;
        }
        else
        {
          window.FirstTestEntityRiskRating = parseInt(crmForm.all.ca_TestEntityriskraiting.DataValue);
        }

        setTimeout(CheckTestEntityRiskRating, 5000);
      }
    }
    else
    {
      LoadEntityTabInIFrame(&quot;IFRAME_QualityAndRisk&quot;, &quot;ca_qualityandrisk&quot;, &quot;&quot;, 0);
    }
  }

  function CheckTestEntityRiskRating() 
  {
    var sTestEntityGuid = crmForm.ObjectId;
    var asColums = [&quot;ca_TestEntityriskraiting&quot;];
    var beRetrievedQualityAndRisk = service.Retrieve(&quot;ca_TestEntity&quot;, sTestEntityGuid, asColums);
    
    if (typeof(beRetrievedQualityAndRisk.attributes[&quot;ca_TestEntityriskraiting&quot;]) == &quot;undefined&quot; || beRetrievedQualityAndRisk.attributes[&quot;ca_TestEntityriskraiting&quot;] == null)
    {
      window.LastTestEntityRiskRating = 0;
    }
    else
    {
      window.LastTestEntityRiskRating = parseInt(beRetrievedQualityAndRisk.attributes[&quot;ca_TestEntityriskraiting&quot;].value);
    }

    if (window.FirstTestEntityRiskRating != window.LastTestEntityRiskRating)
    {      
      ShowNotice(&quot;TestEntity Risk Rating has been changed!&quot;);
      crmForm.all.ca_TestEntityriskraiting.DataValue = window.LastTestEntityRiskRating;
      crmForm.all.ca_TestEntityseconderid.DataValue = null;
      EnableDisableSeconderField();
    }

    //alert(&quot;window.FirstTestEntityRiskRating = &quot; + window.FirstTestEntityRiskRating + &quot; | window.LastTestEntityRiskRating = &quot; + window.LastTestEntityRiskRating + &quot; | Equals = &quot; + (window.FirstTestEntityRiskRating == window.LastTestEntityRiskRating));

    setTimeout(CheckTestEntityRiskRating, 5000);
  }
}

function LoadMonitoringAndAssessmentForm()
{
  if (crmForm.FormType == CREATE_FORM)
  {
    crmForm.all[&quot;IFRAME_MonitoringAndAssessment&quot;].src = CRM_URL + &quot;/ISV/Ascentium/CustomPages/IframeSplashPage.aspx&quot;;
  }
  //else if (crmForm.FormType == UPDATE_FORM)
  else
  {
    var sMonitoringAndAssessmentId = GetLastMonitoringAndAssessment();
    if (sMonitoringAndAssessmentId != null)  
    {
      LoadEntityTabInIFrame(&quot;IFRAME_MonitoringAndAssessment&quot;, &quot;ca_monitoringassessment&quot;, sMonitoringAndAssessmentId, 0, null, &quot;TestEntityid=&quot; + crmForm.ObjectId);
    }
    else
    {
      LoadEntityTabInIFrame(&quot;IFRAME_MonitoringAndAssessment&quot;, &quot;ca_monitoringassessment&quot;, &quot;&quot;, 0);
    }
  }
}

function GetLastQualityAndRiskId()
{
  var sResult = null;
  if (crmForm.FormType == UPDATE_FORM)
  {
    var oService = new Ascentium_CrmService();	 
    var sFetchXml = '&lt;fetch mapping=&quot;logical&quot; count=&quot;1&quot;&gt;&lt;entity name=&quot;ca_qualityandrisk&quot;&gt;&lt;attribute name=&quot;ca_qualityandriskid&quot; /&gt;&lt;order attribute=&quot;createdon&quot; descending=&quot;true&quot; /&gt;&lt;filter&gt;&lt;condition attribute=&quot;ca_TestEntityid&quot; operator=&quot;eq&quot; value=&quot;' + crmForm.ObjectId + '&quot; /&gt;&lt;/filter&gt;&lt;/entity&gt;&lt;/fetch&gt;'; 
    var aoFetchResults = oService.Fetch(sFetchXml); 

    var numOfRecords = aoFetchResults.length;
    if (numOfRecords &gt; 0)
    {
      sResult =  aoFetchResults[0].attributes[&quot;ca_qualityandriskid&quot;].value;
    }
    else
    {
      sResult = null;
    }
  }
  return sResult;
}

function GetLastMonitoringAndAssessment()
{
  var sResult = null;
  if (crmForm.FormType == UPDATE_FORM)
  {
    var oService = new Ascentium_CrmService();	 

    var sFetchXml = '&lt;fetch mapping=&quot;logical&quot; count=&quot;1&quot;&gt;&lt;entity name=&quot;ca_monitoringassessment&quot;&gt;&lt;attribute name=&quot;ca_monitoringassessmentid&quot; /&gt;&lt;order attribute=&quot;createdon&quot; descending=&quot;true&quot; /&gt;&lt;filter&gt;&lt;condition attribute=&quot;ca_TestEntityid&quot; operator=&quot;eq&quot; value=&quot;' + crmForm.ObjectId + '&quot; /&gt;&lt;/filter&gt;&lt;/entity&gt;&lt;/fetch&gt;';

    var aoFetchResults = oService.Fetch(sFetchXml); 

    var numOfRecords = aoFetchResults.length;
    if (numOfRecords &gt; 0)
    {
      sResult =  aoFetchResults[0].attributes[&quot;ca_monitoringassessmentid&quot;].value;
    }
    else
    {
      sResult = null;
    }
  }
  return sResult;
}

function FormDesignForIteration3()
{
  EnableDisableSeconderField();
  var bIsAbleToseeCriticalIssues = IsAbleToseeCriticalIssues();

  var oTestEntityRiskField = new CrmField(&quot;ca_TestEntityriskraiting&quot;);
  oTestEntityRiskField.OnChange(EnableDisableSeconderField);

  if (crmForm.FormType == CREATE_FORM)
  {
    crmForm.all[&quot;IFRAME_CriticalIssues&quot;].src = CRM_URL + &quot;/ISV/Ascentium/CustomPages/IframeSplashPage.aspx&quot;;
  }
  else
  {
    LoadViewInFrame(&quot;IFRAME_CriticalIssues&quot;, &quot;ca_TestEntity_ca_criticalissue&quot;, &quot;ca_TestEntity_ca_criticalissue&quot;, CriticalIssuesGridLoaded);
  }

  if (!bIsAbleToseeCriticalIssues)
  {
    HideTab(&quot;Critical Issues&quot;);
  }

  HideField(&quot;ca_lastqrrecordid&quot;);
  HideField(&quot;ca_lastmonitoringassessmentid&quot;);
  HideField(&quot;ownerid&quot;);
  HideField(&quot;ca_helperfield&quot;);
}

function EnableDisableSeconderField()
{
  crmForm.all.ca_TestEntityseconderid.Disabled = crmForm.all.ca_TestEntityriskraiting.DataValue == null;
  ChoseSeconder();
}

function CriticalIssuesGridLoaded()
{
}

function QualityAndRiskFrameLoaded()
{
/*
  if (crmForm.FormType == UPDATE_FORM &amp;&amp; typeof(document.frames(&quot;IFRAME_QualityAndRisk&quot;).crmForm) != &quot;undefined&quot; &amp;&amp; document.frames(&quot;IFRAME_QualityAndRisk&quot;).crmForm != null)
  {
    var sLastQAndRId = GetLastQualityAndRiskId();
    var iObjectTypeCode = document.frames(&quot;IFRAME_QualityAndRisk&quot;).crmForm.ObjectTypeCode;
    if (sLastQAndRId != null &amp;&amp; sLastQAndRId != &quot;&quot;) LoadViewInFrame(&quot;IFRAME_CriticalIssues&quot;, &quot;ca_qualityandrisk_ca_criticalissue&quot;, &quot;ca_qualityandrisk_ca_criticalissue&quot;, CriticalIssuesGridLoaded, sLastQAndRId, iObjectTypeCode);
  }
*/
}

function IsAbleToseeCriticalIssues()
{
  var bUserIsInTestEntityTeam = IsUserInTestEntityTeam();
  if (ROLE_PROMISE_SUPER_USER || ROLE_PROMISE_INTERNAL_AUDIT || ROLE_PROMISE_SYSTEM_ADMINISTRATOR || ROLE_PROMISE_ID_SMT || ROLE_SYSTEM_ADMINISTRATOR || ROLE_PROMISE_SENSITIVE_PARTNER_CRITICAL_ISSUES_COMMON || bUserIsInTestEntityTeam)
  {
    return true;
  }
  return false;
}

function IsUserInTestEntityTeam()
{
  if (crmForm.FormType == UPDATE_FORM)
  {
    var oService = new Ascentium_CrmService();	 

    var sFetchXml = '&lt;fetch mapping=&quot;logical&quot;&gt;&lt;entity name=&quot;systemuser&quot;&gt;&lt;attribute name=&quot;systemuserid&quot; /&gt;&lt;filter&gt;&lt;condition attribute=&quot;systemuserid&quot; operator=&quot;eq&quot; value=&quot;{' + USER_ID + '}&quot; /&gt;&lt;/filter&gt;&lt;link-entity name=&quot;teammembership&quot; from=&quot;systemuserid&quot; to=&quot;systemuserid&quot;&gt;&lt;link-entity name=&quot;team&quot; from=&quot;teamid&quot; to=&quot;teamid&quot;&gt;&lt;link-entity name=&quot;ca_TestEntity&quot; from=&quot;ca_TestEntityteamid&quot; to=&quot;teamid&quot;&gt;&lt;filter&gt;&lt;condition attribute=&quot;ca_TestEntityid&quot; operator=&quot;eq&quot; value=&quot;' + crmForm.ObjectId + '&quot; /&gt;&lt;/filter&gt;&lt;/link-entity&gt;&lt;/link-entity&gt;&lt;/link-entity&gt;&lt;/entity&gt;&lt;/fetch&gt;';

    var aoFetchResults = oService.Fetch(sFetchXml); 
    var numOfRecords = aoFetchResults.length;
    if (numOfRecords &gt; 0) return true;
  } 
  return false;
}
//==========================================================================================
// Filtered Lookup For the TestEntity Proposer
// Bug 1600
//==========================================================================================

SetTestEntityProposerFilteredLookup();

function SetTestEntityProposerFilteredLookup()
{
//  if (crmForm.FormType == UPDATE_FORM)
//  {
    var oService = new Ascentium_CrmService();
    
    var sFilterCondotions = &quot;&quot;;	 

    if (crmForm.all.ca_programmeid.DataValue != null &amp;&amp; crmForm.all.ca_programmeid.DataValue[0] != null)
    {
      var sProgrammeId = crmForm.all.ca_programmeid.DataValue[0].id;

      var sFetchXmlProgrammeTeamUsers = '&lt;fetch mapping=&quot;logical&quot;&gt;&lt;entity name=&quot;systemuser&quot;&gt;&lt;attribute name=&quot;systemuserid&quot; /&gt;&lt;link-entity name=&quot;teammembership&quot; from=&quot;systemuserid&quot; to=&quot;systemuserid&quot;&gt;&lt;link-entity name=&quot;team&quot; from=&quot;teamid&quot; to=&quot;teamid&quot;&gt;&lt;link-entity name=&quot;ca_programme&quot; from=&quot;ca_teamprogrammeid&quot; to=&quot;teamid&quot;&gt;&lt;filter&gt;&lt;condition attribute=&quot;ca_programmeid&quot; operator=&quot;eq&quot; value=&quot;' + sProgrammeId + '&quot; /&gt;&lt;/filter&gt;&lt;/link-entity&gt;&lt;/link-entity&gt;&lt;/link-entity&gt;&lt;/entity&gt;&lt;/fetch&gt;';

      var aoFetchProgrammeTeamUsersResults = oService.Fetch(sFetchXmlProgrammeTeamUsers); 
      var iNumOfTeamUsers = aoFetchProgrammeTeamUsersResults.length;
      if (iNumOfTeamUsers &gt; 0)
      {
        for (i = 0; i &lt; iNumOfTeamUsers; i++)
        {
          sFilterCondotions += '&lt;condition attribute=&quot;systemuserid&quot; operator=&quot;eq&quot; value=&quot;' + aoFetchProgrammeTeamUsersResults[0].attributes[&quot;systemuserid&quot;].value + '&quot; /&gt;';
        }
      }

      var sFetchXmlProgramme = '&lt;fetch mapping=&quot;logical&quot;&gt;&lt;entity name=&quot;ca_programme&quot;&gt;&lt;attribute name=&quot;ca_budgetholderid&quot; /&gt;&lt;attribute name=&quot;ca_programmemanagerid&quot; /&gt;&lt;filter&gt;&lt;condition attribute=&quot;ca_programmeid&quot; operator=&quot;eq&quot; value=&quot;' + sProgrammeId + '&quot; /&gt;&lt;/filter&gt;&lt;/entity&gt;&lt;/fetch&gt;';

      var aoFetchProgrammeResults = oService.Fetch(sFetchXmlProgramme); 
      var iNumOfProgs = aoFetchProgrammeResults.length;
      if (iNumOfProgs &gt; 0)
      {
        if (typeof(aoFetchProgrammeResults[0].attributes[&quot;ca_programmemanagerid&quot;]) != &quot;undefined&quot; &amp;&amp; aoFetchProgrammeResults[0].attributes[&quot;ca_programmemanagerid&quot;] != null) sFilterCondotions += '&lt;condition attribute=&quot;systemuserid&quot; operator=&quot;eq&quot; value=&quot;' + aoFetchProgrammeResults[0].attributes[&quot;ca_programmemanagerid&quot;].value + '&quot; /&gt;';
        if (typeof(aoFetchProgrammeResults[0].attributes[&quot;ca_budgetholderid&quot;]) != &quot;undefined&quot; &amp;&amp; aoFetchProgrammeResults[0].attributes[&quot;ca_budgetholderid&quot;] != null) sFilterCondotions += '&lt;condition attribute=&quot;systemuserid&quot; operator=&quot;eq&quot; value=&quot;' + aoFetchProgrammeResults[0].attributes[&quot;ca_budgetholderid&quot;].value + '&quot; /&gt;';
      }
    }
    else
    {
      sFilterCondotions = '&lt;condition attribute=&quot;systemuserid&quot; operator=&quot;null&quot; /&gt;';
    }

    var sFilteredLookupFetchXml = '&lt;fetch mapping=&quot;logical&quot;&gt;&lt;entity name=&quot;systemuser&quot;&gt;&lt;filter type=&quot;or&quot;&gt;' + sFilterCondotions + '&lt;/filter&gt;&lt;/entity&gt;&lt;/fetch&gt;';
    
    crmForm.all.ca_TestEntitymanagerid.lookupbrowse = 1;
    crmForm.all.ca_TestEntitymanagerid.AddParam(&quot;search&quot;, sFilteredLookupFetchXml);
//  } 
}
//==========================================================================================

/* ======================================================
	Bug 2007: TestEntity's fields &quot;Progaramme&quot; and &quot;Programm Objective&quot; should be disabled after first Grant for the TestEntity is created
*/
DisableProgrammeAndObjective = function()
{
	if (crmForm.FormType != UPDATE_FORM || !crmForm.ObjectId)
		return;
		
	var service = new Ascentium_CrmService();
	var fetchXml = '&lt;fetch mapping=&quot;logical&quot;&gt;\
		&lt;entity name=&quot;ca_grant&quot;&gt;\
		&lt;attribute name=&quot;ca_grantid&quot; /&gt;\
		&lt;filter&gt;\
			&lt;condition attribute=&quot;ca_TestEntityid&quot; operator=&quot;eq&quot; value=&quot;' + crmForm.ObjectId + '&quot; /&gt;\
		&lt;/filter&gt;\
		&lt;/entity&gt;\
	&lt;/fetch&gt;';

	var results = service.Fetch(fetchXml);
	if (results.length &gt; 0)
	{
		// The TestEntity already has one or more grants
		(new CrmField('ca_programmeid')).Disable();
		(new CrmField('ca_programmeobjectiveid')).Disable();
	}
	else
	{
		(new CrmField('ca_programmeid')).Enable();
		(new CrmField('ca_programmeobjectiveid')).Enable();
	}
}
DisableProgrammeAndObjective();
/* End of Bug 2007 */]]></script>
                  <dependencies />
                </event>
                <event name="onsave" application="false" active="true">
                  <script><![CDATA[crmForm.all.ca_status.ForceSubmit = true;

//=====================================================================================
// Iteration 3 - QualityAnd Risk
//=====================================================================================

SaveRegardingQualityAndRiskRecord();

function SaveRegardingQualityAndRiskRecord()
{
	if (document.frames(&quot;IFRAME_QualityAndRisk&quot;).crmForm != &quot;undefined&quot;
		&amp;&amp; document.frames(&quot;IFRAME_QualityAndRisk&quot;).crmForm != null
		&amp;&amp; document.frames(&quot;IFRAME_QualityAndRisk&quot;).CustomIsDirty != &quot;undefined&quot; 
		&amp;&amp; document.frames(&quot;IFRAME_QualityAndRisk&quot;).CustomIsDirty == true)
	{
		if (typeof (document.frames(&quot;IFRAME_QualityAndRisk&quot;).crmForm.all.ca_TestEntityid.DataValue) != &quot;undefined&quot;
			&amp;&amp; document.frames(&quot;IFRAME_QualityAndRisk&quot;).crmForm.all.ca_TestEntityid.DataValue == null)
		{
			var aTestEntityLookupData = new Array();
			var aTestEntityLookupItem = new Object();
			aTestEntityLookupItem.id = crmForm.ObjectId;
			aTestEntityLookupItem.typename = crmForm.ObjectTypeName;
			aTestEntityLookupItem.name = &quot;TestEntity&quot;;
			aTestEntityLookupData[0] = aTestEntityLookupItem;
			document.frames(&quot;IFRAME_QualityAndRisk&quot;).crmForm.all.ca_TestEntityid.DataValue = aTestEntityLookupData;
			document.frames(&quot;IFRAME_QualityAndRisk&quot;).crmForm.all.ca_TestEntityid.ForceSubmit = true;
			if (document.frames(&quot;IFRAME_QualityAndRisk&quot;).crmForm.IsDirty)
			{
				document.frames(&quot;IFRAME_QualityAndRisk&quot;).crmForm.all.ca_relatedmonitoringassessmentid.DataValue = null;
				document.frames(&quot;IFRAME_QualityAndRisk&quot;).crmForm.all.ca_relatedmonitoringassessmentid.ForceSubmit = true;
			}
		}
	
		var bSaveResult = document.frames(&quot;IFRAME_QualityAndRisk&quot;).crmForm.Save();
	}

	if (document.frames(&quot;IFRAME_MonitoringAndAssessment&quot;).crmForm != &quot;undefined&quot;
		&amp;&amp; document.frames(&quot;IFRAME_MonitoringAndAssessment&quot;).crmForm != null
		&amp;&amp; document.frames(&quot;IFRAME_MonitoringAndAssessment&quot;).CustomIsDirty != &quot;undefined&quot; 
		&amp;&amp; document.frames(&quot;IFRAME_MonitoringAndAssessment&quot;).CustomIsDirty == true)
	{
		if (typeof (document.frames(&quot;IFRAME_MonitoringAndAssessment&quot;).crmForm.all.ca_TestEntityid.DataValue) != &quot;undefined&quot; 
			&amp;&amp; document.frames(&quot;IFRAME_MonitoringAndAssessment&quot;).crmForm.all.ca_TestEntityid.DataValue == null)
		{
			var aTestEntityLookupData = new Array();
			var aTestEntityLookupItem = new Object();
			aTestEntityLookupItem.id = crmForm.ObjectId;
			aTestEntityLookupItem.typename = crmForm.ObjectTypeName;
			aTestEntityLookupItem.name = &quot;TestEntity&quot;;
			aTestEntityLookupData[0] = aTestEntityLookupItem;
			document.frames(&quot;IFRAME_MonitoringAndAssessment&quot;).crmForm.all.ca_TestEntityid.DataValue = aTestEntityLookupData;
			document.frames(&quot;IFRAME_MonitoringAndAssessment&quot;).crmForm.all.ca_TestEntityid.ForceSubmit = true;
		}

		var bSaveResult = document.frames(&quot;IFRAME_MonitoringAndAssessment&quot;).crmForm.Save();
	}
}
//=====================================================================================
]]></script>
                  <dependencies />
                </event>
              </events>
            </form>
          </entity>
          <entity name="ca_TestEntity" objecttypecode="10022">
            <form type="preview" id="{19645541-28ae-4266-918f-70db1afb0ff5}">
              <tabs>
                <tab verticallayout="true" id="{2a2af008-7072-468b-9a61-48f88bbdcf39}" IsUserDefined="1">
                  <labels>
                    <label description="General" languagecode="1033" />
                  </labels>
                  <sections>
                    <section showlabel="false" showbar="false" IsUserDefined="1" id="{f52f256a-0242-4a47-93a6-dbe37f1b5cf1}">
                      <labels>
                        <label description="Information" languagecode="1033" />
                      </labels>
                      <rows />
                    </section>
                  </sections>
                </tab>
              </tabs>
            </form>
          </entity>
        </forms>
      </FormXml>
      <SavedQueries>
        <savedqueries entity="SavedQuery" morerecords="0" paging-cookie="" version="3.0">
          <savedquery>
            <columnsetxml>
              <columnset>
                <column>ca_TestEntityname</column>
                <column>createdon</column>
                <ascend>ca_TestEntityname</ascend>
              </columnset>
            </columnsetxml>
            <iscustomizable name="Yes">1</iscustomizable>
            <isquickfindquery name="No">0</isquickfindquery>
            <isuserdefined name="Yes">1</isuserdefined>
            <isprivate>0</isprivate>
            <isdefault name="Yes">1</isdefault>
            <returnedtypecode formattedvalue="10,022">10022</returnedtypecode>
            <savedqueryid>{18115C69-97C5-43F9-A992-D97DEE7FC30B}</savedqueryid>
            <savedqueryidunique>{81E8C611-E716-449B-8B0D-6901866AD334}</savedqueryidunique>
            <layoutxml>
              <grid name="resultset" object="10022" jump="ca_TestEntityname" select="1" icon="1" preview="1">
                <row name="result" id="ca_TestEntityid">
                  <cell name="ca_TestEntityname" width="300" />
                  <cell name="createdon" width="125" />
                </row>
              </grid>
            </layoutxml>
            <customizationlevel formattedvalue="1">1</customizationlevel>
            <querytype formattedvalue="0">0</querytype>
            <fetchxml>
              <fetch version="1.0" mapping="logical">
                <entity name="ca_TestEntity">
                  <attribute name="ca_TestEntityid" />
                  <attribute name="ca_TestEntityname" />
                  <attribute name="createdon" />
                  <order attribute="ca_TestEntityname" descending="false" />
                  <filter type="and">
                    <condition attribute="statecode" operator="eq" value="0" />
                  </filter>
                </entity>
              </fetch>
            </fetchxml>
            <LocalizedNames>
              <LocalizedName description="Active TestEntitys" languagecode="1033" />
            </LocalizedNames>
          </savedquery>
          <savedquery>
            <columnsetxml>
              <columnset>
                <column>ca_TestEntityname</column>
                <column>createdon</column>
                <ascend>ca_TestEntityname</ascend>
              </columnset>
            </columnsetxml>
            <iscustomizable name="Yes">1</iscustomizable>
            <isquickfindquery name="No">0</isquickfindquery>
            <isuserdefined name="Yes">1</isuserdefined>
            <isprivate>0</isprivate>
            <isdefault name="No">0</isdefault>
            <returnedtypecode formattedvalue="10,022">10022</returnedtypecode>
            <savedqueryid>{727BEDB7-05EF-4659-BA2E-D5FA8785369A}</savedqueryid>
            <savedqueryidunique>{C2F53D95-4501-4E1A-B816-465E12682840}</savedqueryidunique>
            <layoutxml>
              <grid name="resultset" object="10022" jump="ca_TestEntityname" select="1" icon="1" preview="1">
                <row name="result" id="ca_TestEntityid">
                  <cell name="ca_TestEntityname" width="300" />
                  <cell name="createdon" width="125" />
                </row>
              </grid>
            </layoutxml>
            <customizationlevel formattedvalue="1">1</customizationlevel>
            <querytype formattedvalue="0">0</querytype>
            <fetchxml>
              <fetch version="1.0" mapping="logical">
                <entity name="ca_TestEntity">
                  <attribute name="ca_TestEntityid" />
                  <attribute name="ca_TestEntityname" />
                  <attribute name="createdon" />
                  <order attribute="ca_TestEntityname" descending="false" />
                  <filter type="and">
                    <condition attribute="statecode" operator="eq" value="1" />
                  </filter>
                </entity>
              </fetch>
            </fetchxml>
            <LocalizedNames>
              <LocalizedName description="Inactive TestEntitys" languagecode="1033" />
            </LocalizedNames>
          </savedquery>
          <savedquery>
            <columnsetxml>
              <columnset>
                <column>ca_TestEntityname</column>
                <column>createdon</column>
                <ascend>ca_TestEntityname</ascend>
              </columnset>
            </columnsetxml>
            <iscustomizable name="No">0</iscustomizable>
            <isquickfindquery name="No">0</isquickfindquery>
            <isuserdefined name="Yes">1</isuserdefined>
            <isprivate>0</isprivate>
            <isdefault name="Yes">1</isdefault>
            <returnedtypecode formattedvalue="10,022">10022</returnedtypecode>
            <savedqueryid>{5F2072FC-7C94-4597-89D6-58BFD9FCA1A1}</savedqueryid>
            <savedqueryidunique>{76A136B6-20BC-47D7-AA26-C93F9215FC36}</savedqueryidunique>
            <layoutxml>
              <grid name="resultset" object="10022" jump="ca_TestEntityname" select="1" icon="1" preview="1">
                <row name="result" id="ca_TestEntityid">
                  <cell name="ca_TestEntityname" width="300" />
                  <cell name="createdon" width="125" />
                </row>
              </grid>
            </layoutxml>
            <customizationlevel formattedvalue="1">1</customizationlevel>
            <querytype formattedvalue="1">1</querytype>
            <fetchxml>
              <fetch version="1.0" mapping="logical">
                <entity name="ca_TestEntity">
                  <attribute name="ca_TestEntityid" />
                  <attribute name="ca_TestEntityname" />
                  <attribute name="createdon" />
                  <order attribute="ca_TestEntityname" descending="false" />
                </entity>
              </fetch>
            </fetchxml>
            <LocalizedNames>
              <LocalizedName description="TestEntity Advanced Find View" languagecode="1033" />
            </LocalizedNames>
          </savedquery>
          <savedquery>
            <columnsetxml>
              <columnset>
                <filter type="and">
                  <condition column="statecode" operator="eq" value="0" />
                </filter>
                <column>ca_TestEntityname</column>
                <column>createdon</column>
                <ascend>ca_TestEntityname</ascend>
              </columnset>
            </columnsetxml>
            <iscustomizable name="No">0</iscustomizable>
            <isquickfindquery name="No">0</isquickfindquery>
            <isuserdefined name="Yes">1</isuserdefined>
            <isprivate>0</isprivate>
            <isdefault name="Yes">1</isdefault>
            <returnedtypecode formattedvalue="10,022">10022</returnedtypecode>
            <savedqueryid>{CD6A458D-9C69-4531-8948-93CD6FE7AC50}</savedqueryid>
            <queryapi>AUTO</queryapi>
            <savedqueryidunique>{346A4B07-568F-4306-A349-DCB7CC9EE1A5}</savedqueryidunique>
            <layoutxml>
              <grid name="ca_TestEntitys" object="10022" jump="ca_TestEntityname" select="1" icon="1" preview="1">
                <row name="ca_TestEntity" id="ca_TestEntityid">
                  <cell name="ca_TestEntityname" width="300" />
                  <cell name="createdon" width="125" />
                </row>
              </grid>
            </layoutxml>
            <customizationlevel formattedvalue="1">1</customizationlevel>
            <querytype formattedvalue="2">2</querytype>
            <LocalizedNames>
              <LocalizedName description="TestEntity Associated View" languagecode="1033" />
            </LocalizedNames>
          </savedquery>
          <savedquery>
            <columnsetxml>
              <columnset>
                <column>ca_TestEntityname</column>
                <column>createdon</column>
                <ascend>ca_TestEntityname</ascend>
              </columnset>
            </columnsetxml>
            <iscustomizable name="No">0</iscustomizable>
            <isquickfindquery name="Yes">1</isquickfindquery>
            <isuserdefined name="Yes">1</isuserdefined>
            <isprivate>0</isprivate>
            <isdefault name="Yes">1</isdefault>
            <returnedtypecode formattedvalue="10,022">10022</returnedtypecode>
            <savedqueryid>{862D5F38-A9C5-42CE-9BFB-C24FF3969AE4}</savedqueryid>
            <savedqueryidunique>{6E340748-B823-4F00-B0E7-B84A89480547}</savedqueryidunique>
            <layoutxml>
              <grid name="resultset" object="10022" jump="ca_TestEntityname" select="1" icon="1" preview="1">
                <row name="result" id="ca_TestEntityid">
                  <cell name="ca_TestEntityname" width="300" />
                  <cell name="createdon" width="125" />
                </row>
              </grid>
            </layoutxml>
            <customizationlevel formattedvalue="1">1</customizationlevel>
            <querytype formattedvalue="4">4</querytype>
            <fetchxml>
              <fetch version="1.0" mapping="logical">
                <entity name="ca_TestEntity">
                  <attribute name="ca_TestEntityid" />
                  <attribute name="ca_TestEntityname" />
                  <attribute name="createdon" />
                  <order attribute="ca_TestEntityname" descending="false" />
                  <filter type="and">
                    <condition attribute="statecode" operator="eq" value="0" />
                  </filter>
                  <filter type="or" isquickfindfields="1">
                    <condition attribute="ca_TestEntityname" operator="like" value="{0}" />
                  </filter>
                </entity>
              </fetch>
            </fetchxml>
            <LocalizedNames>
              <LocalizedName description="Quick Find Active TestEntitys" languagecode="1033" />
            </LocalizedNames>
          </savedquery>
          <savedquery>
            <columnsetxml>
              <columnset>
                <column>ca_TestEntityname</column>
                <column>createdon</column>
                <ascend>ca_TestEntityname</ascend>
              </columnset>
            </columnsetxml>
            <iscustomizable name="No">0</iscustomizable>
            <isquickfindquery name="No">0</isquickfindquery>
            <isuserdefined name="Yes">1</isuserdefined>
            <isprivate>0</isprivate>
            <isdefault name="Yes">1</isdefault>
            <returnedtypecode formattedvalue="10,022">10022</returnedtypecode>
            <savedqueryid>{1BB455BE-58C1-4D71-8971-2BD9748FAE1C}</savedqueryid>
            <savedqueryidunique>{A510F1FB-D1D1-4952-A705-900117D7881D}</savedqueryidunique>
            <layoutxml>
              <grid name="ca_TestEntitys" object="10022" jump="ca_TestEntityname" select="1" icon="1" preview="0">
                <row name="ca_TestEntity" id="ca_TestEntityid">
                  <cell name="ca_TestEntityname" width="300" />
                  <cell name="createdon" width="125" />
                </row>
              </grid>
            </layoutxml>
            <customizationlevel formattedvalue="1">1</customizationlevel>
            <querytype formattedvalue="64">64</querytype>
            <fetchxml>
              <fetch version="1.0" mapping="logical">
                <entity name="ca_TestEntity">
                  <attribute name="ca_TestEntityid" />
                  <attribute name="ca_TestEntityname" />
                  <attribute name="createdon" />
                  <filter type="or" isquickfindfields="1">
                    <condition attribute="ca_TestEntityname" operator="like" value="{0}" />
                  </filter>
                </entity>
              </fetch>
            </fetchxml>
            <LocalizedNames>
              <LocalizedName description="TestEntity Lookup View" languagecode="1033" />
            </LocalizedNames>
          </savedquery>
        </savedqueries>
      </SavedQueries>
      <Icons>
        <Icon type="GridIcon">R0lGODlhEAAQAOZGAGhoacLDxPHthqMzKtuyCauRMIaGiGFziG1qPP39/tXKdcyNUZakt912KuLr+sTAvezWTuSLSe3KI7S1lzQ1NFhXVo6Sc3WFm4mZr7hbF/P2/cW1a/jsbr67erWkTjNJYppEBMm3VaKio05MQra1tt5wZapMBJt4FCU8HrlRA/T4/punwVJjd/f3/E9WSdjXzODZfezx+6Ssv+WqgJx+OGqIYJalgJiST6uSS6CbYNzKSvj7mwAAAMGnNYZ6NKiHIaN/GqNQDqtREmxgUNPJnOaaYv///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAEYALAAAAAAQABAAAAfegEaCRjIrDAwYGBeLFwcHg0YYCZOUCSoxDh+QGC0lA5WTDixGJAamJAMlCYYrhpkBAAYiBhUHlC2TLaIGABW9AQafLRotw5kuIyQvDyIHJSoTBROHmRQULwGzALgKAiE1mB8TPNm0IwMvChYeOeFGC0O+JqnqBhQ9Fg4oD0IZLyopVhARYAHACB0bVqDIMKMIiAYpbCjY0YHCDQ49DiwsEiHCww4CdsBAEAKChAIuMjToCGIBjB0CNozwYZIAkQlBTIAAsQEmBwg+ekiQQOAHJCM4POAowPTHCSAnaAQCADs=</Icon>
      </Icons>
    </Entity>
  </Entities>
  <Roles />
  <Workflows />
  <RelationshipRoles />
  <EntityMaps>
    <EntityMap>
      <EntitySource>ca_incomesource</EntitySource>
      <EntityTarget>ca_TestEntity</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_TestEntity</EntitySource>
      <EntityTarget>ca_qualityandrisk</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_csocapTestEntitytype</EntitySource>
      <EntityTarget>ca_TestEntity</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_TestEntity</EntitySource>
      <EntityTarget>ca_programmeobjective</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>transactioncurrency</EntitySource>
      <EntityTarget>ca_TestEntity</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>team</EntitySource>
      <EntityTarget>ca_TestEntity</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_TestEntity</EntitySource>
      <EntityTarget>ca_audit</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_corporatestrategyobjective</EntitySource>
      <EntityTarget>ca_TestEntity</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_TestEntity</EntitySource>
      <EntityTarget>ca_criticalissue</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_qualityandrisk</EntitySource>
      <EntityTarget>ca_TestEntity</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_documentation</EntitySource>
      <EntityTarget>ca_TestEntity</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_TestEntity</EntitySource>
      <EntityTarget>ca_corporatestrategyobjective</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_TestEntitytargetgroup</EntitySource>
      <EntityTarget>ca_TestEntity</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>account</EntitySource>
      <EntityTarget>ca_TestEntity</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_monitoringassessment</EntitySource>
      <EntityTarget>ca_TestEntity</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_TestEntity</EntitySource>
      <EntityTarget>ca_documentation</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_programme</EntitySource>
      <EntityTarget>ca_TestEntity</EntityTarget>
      <AttributeMaps>
        <AttributeMap>
          <AttributeSource>ca_locationid</AttributeSource>
          <AttributeTarget>ca_primarylocationid</AttributeTarget>
        </AttributeMap>
      </AttributeMaps>
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_TestEntity</EntitySource>
      <EntityTarget>ca_monitoringassessment</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_programmeobjective</EntitySource>
      <EntityTarget>ca_TestEntity</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_TestEntity</EntitySource>
      <EntityTarget>account</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>systemuser</EntitySource>
      <EntityTarget>ca_TestEntity</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_TestEntity</EntitySource>
      <EntityTarget>ca_grant</EntityTarget>
      <AttributeMaps>
        <AttributeMap>
          <AttributeSource>ca_primecurrencyid</AttributeSource>
          <AttributeTarget>ca_approvalcurrencyid</AttributeTarget>
        </AttributeMap>
      </AttributeMaps>
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_TestEntity</EntitySource>
      <EntityTarget>ca_transfer</EntityTarget>
      <AttributeMaps />
    </EntityMap>
    <EntityMap>
      <EntitySource>ca_location</EntitySource>
      <EntityTarget>ca_TestEntity</EntityTarget>
      <AttributeMaps />
    </EntityMap>
  </EntityMaps>
  <EntityRelationships>
    <EntityRelationship Name="ca_team_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>Team</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_TestEntityteamid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for Team associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_TestEntityteamid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="TestEntity Team" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_TestEntity_ca_criticalissue">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_criticalissue</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>UserOwned</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_TestEntityid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for TestEntity associated with Critical Issue." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_TestEntityid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="TestEntity" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="lk_ca_TestEntity_createdby">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>SystemUser</ReferencedEntityName>
      <ReferencingAttributeName>createdby</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier of the user who created the record." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="createdby" requiredlevel="none" imemode="auto" lookupclass="SystemUsers" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Created By" languagecode="1033" />
        </displaynames>
      </field>
    </EntityRelationship>
    <EntityRelationship Name="lk_ca_TestEntity_modifiedby">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>SystemUser</ReferencedEntityName>
      <ReferencingAttributeName>modifiedby</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier of the user who modified the record." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="modifiedby" requiredlevel="none" imemode="auto" lookupclass="SystemUsers" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Modified By" languagecode="1033" />
        </displaynames>
      </field>
    </EntityRelationship>
    <EntityRelationship Name="user_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>SystemUser</ReferencedEntityName>
      <ReferencingAttributeName>owninguser</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for the user that owns the record." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="owninguser" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames />
      </field>
    </EntityRelationship>
    <EntityRelationship Name="business_unit_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>BusinessUnit</ReferencedEntityName>
      <ReferencingAttributeName>owningbusinessunit</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for the business unit that owns the record" languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="owningbusinessunit" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Owning Business Unit" languagecode="1033" />
        </displaynames>
      </field>
    </EntityRelationship>
    <EntityRelationship Name="ca_TestEntity_ActivityPointers">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>ActivityPointer</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <ReferencingAttributeName>regardingobjectid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier of the object with which the activity is associated." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="regardingobjectid" requiredlevel="none" imemode="auto" lookupclass="ActivityRegarding" lookupstyle="single" lookupbrowse="0" format="regarding">
        <displaynames>
          <displayname description="Regarding" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>UseCollectionName</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_TestEntity_Appointments">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>Appointment</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>Cascade</CascadeAssign>
      <CascadeDelete>Cascade</CascadeDelete>
      <CascadeReparent>Cascade</CascadeReparent>
      <CascadeShare>Cascade</CascadeShare>
      <CascadeUnshare>Cascade</CascadeUnshare>
      <ReferencingAttributeName>regardingobjectid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier of the object with which the appointment is associated." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="regardingobjectid" requiredlevel="none" imemode="auto" lookupclass="ActivityRegarding" lookupstyle="single" lookupbrowse="0" format="regarding">
        <displaynames>
          <displayname description="Regarding" languagecode="1033" />
        </displaynames>
      </field>
    </EntityRelationship>
    <EntityRelationship Name="ca_TestEntity_Emails">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>Email</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>Cascade</CascadeAssign>
      <CascadeDelete>Cascade</CascadeDelete>
      <CascadeReparent>Cascade</CascadeReparent>
      <CascadeShare>Cascade</CascadeShare>
      <CascadeUnshare>Cascade</CascadeUnshare>
      <ReferencingAttributeName>regardingobjectid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier of the object with which the e-mail is associated." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="regardingobjectid" requiredlevel="none" imemode="auto" lookupclass="ActivityRegarding" lookupstyle="single" lookupbrowse="0" format="regarding">
        <displaynames>
          <displayname description="Regarding" languagecode="1033" />
        </displaynames>
      </field>
    </EntityRelationship>
    <EntityRelationship Name="ca_TestEntity_Faxes">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>Fax</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>Cascade</CascadeAssign>
      <CascadeDelete>Cascade</CascadeDelete>
      <CascadeReparent>Cascade</CascadeReparent>
      <CascadeShare>Cascade</CascadeShare>
      <CascadeUnshare>Cascade</CascadeUnshare>
      <ReferencingAttributeName>regardingobjectid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier of the object with which the fax activity is associated." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="regardingobjectid" requiredlevel="none" imemode="auto" lookupclass="ActivityRegarding" lookupstyle="single" lookupbrowse="0" format="regarding">
        <displaynames>
          <displayname description="Regarding" languagecode="1033" />
        </displaynames>
      </field>
    </EntityRelationship>
    <EntityRelationship Name="ca_TestEntity_Letters">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>Letter</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>Cascade</CascadeAssign>
      <CascadeDelete>Cascade</CascadeDelete>
      <CascadeReparent>Cascade</CascadeReparent>
      <CascadeShare>Cascade</CascadeShare>
      <CascadeUnshare>Cascade</CascadeUnshare>
      <ReferencingAttributeName>regardingobjectid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier of the object with which the letter activity is associated." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="regardingobjectid" requiredlevel="none" imemode="auto" lookupclass="ActivityRegarding" lookupstyle="single" lookupbrowse="0" format="regarding">
        <displaynames>
          <displayname description="Regarding" languagecode="1033" />
        </displaynames>
      </field>
    </EntityRelationship>
    <EntityRelationship Name="ca_TestEntity_PhoneCalls">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>PhoneCall</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>Cascade</CascadeAssign>
      <CascadeDelete>Cascade</CascadeDelete>
      <CascadeReparent>Cascade</CascadeReparent>
      <CascadeShare>Cascade</CascadeShare>
      <CascadeUnshare>Cascade</CascadeUnshare>
      <ReferencingAttributeName>regardingobjectid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier of the object with which the phone call activity is associated." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="regardingobjectid" requiredlevel="none" imemode="auto" lookupclass="ActivityRegarding" lookupstyle="single" lookupbrowse="0" format="regarding">
        <displaynames>
          <displayname description="Regarding" languagecode="1033" />
        </displaynames>
      </field>
    </EntityRelationship>
    <EntityRelationship Name="ca_TestEntity_ServiceAppointments">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>ServiceAppointment</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>Cascade</CascadeAssign>
      <CascadeDelete>Cascade</CascadeDelete>
      <CascadeReparent>Cascade</CascadeReparent>
      <CascadeShare>Cascade</CascadeShare>
      <CascadeUnshare>Cascade</CascadeUnshare>
      <ReferencingAttributeName>regardingobjectid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier of the object with which the service activity is associated." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="regardingobjectid" requiredlevel="none" imemode="auto" lookupclass="ActivityRegarding" lookupstyle="single" lookupbrowse="0" format="regarding">
        <displaynames>
          <displayname description="Regarding" languagecode="1033" />
        </displaynames>
      </field>
    </EntityRelationship>
    <EntityRelationship Name="ca_TestEntity_Tasks">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>Task</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>Cascade</CascadeAssign>
      <CascadeDelete>Cascade</CascadeDelete>
      <CascadeReparent>Cascade</CascadeReparent>
      <CascadeShare>Cascade</CascadeShare>
      <CascadeUnshare>Cascade</CascadeUnshare>
      <ReferencingAttributeName>regardingobjectid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier of the object with which the task is associated." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="regardingobjectid" requiredlevel="none" imemode="auto" lookupclass="ActivityRegardingForTask" lookupstyle="single" lookupbrowse="0" format="regarding">
        <displaynames>
          <displayname description="Regarding" languagecode="1033" />
        </displaynames>
      </field>
    </EntityRelationship>
    <EntityRelationship Name="ca_TestEntity_Annotations">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>Annotation</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>Cascade</CascadeAssign>
      <CascadeDelete>Cascade</CascadeDelete>
      <CascadeReparent>Cascade</CascadeReparent>
      <CascadeShare>Cascade</CascadeShare>
      <CascadeUnshare>Cascade</CascadeUnshare>
      <ReferencingAttributeName>objectid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier of the object with which the note is associated." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="objectid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Regarding" languagecode="1033" />
        </displaynames>
      </field>
    </EntityRelationship>
    <EntityRelationship Name="ca_TestEntity_AsyncOperations">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>AsyncOperation</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <ReferencingAttributeName>regardingobjectid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier of the object with which the system job is associated." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="regardingobjectid" requiredlevel="none" imemode="auto" lookupclass="ActivityRegarding" lookupstyle="single" lookupbrowse="0" format="regarding">
        <displaynames>
          <displayname description="Regarding" languagecode="1033" />
        </displaynames>
      </field>
    </EntityRelationship>
    <EntityRelationship Name="ca_TestEntity_BulkDeleteFailures">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>BulkDeleteFailure</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <ReferencingAttributeName>regardingobjectid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier of the record that can not be deleted." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="regardingobjectid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0" format="regarding">
        <displaynames>
          <displayname description="Name" languagecode="1033" />
        </displaynames>
      </field>
    </EntityRelationship>
    <EntityRelationship Name="ca_TestEntity_DuplicateMatchingRecord">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>DuplicateRecord</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <ReferencingAttributeName>duplicaterecordid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier of the potential duplicate record." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="duplicaterecordid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Duplicate Record ID" languagecode="1033" />
        </displaynames>
      </field>
    </EntityRelationship>
    <EntityRelationship Name="ca_TestEntity_DuplicateBaseRecord">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>DuplicateRecord</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <ReferencingAttributeName>baserecordid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier of the base record." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="baserecordid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Base Record ID" languagecode="1033" />
        </displaynames>
      </field>
    </EntityRelationship>
    <EntityRelationship Name="ca_account_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>Account</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_partnerid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for Account associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_partnerid" requiredlevel="recommended" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Partner" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>UseCollectionName</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <NavPaneOrder>10000</NavPaneOrder>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_TestEntity_account">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>Account</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_relatedpartnersid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for TestEntity associated with Partner." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_relatedpartnersid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Related Partners" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>UseCollectionName</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <NavPaneOrder>10000</NavPaneOrder>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_TestEntity_ca_audit">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_audit</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_TestEntityid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for TestEntity associated with Audit." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_TestEntityid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="TestEntity" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_TestEntity_ca_corporatestrategyobjective">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_corporatestrategyobjective</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_TestEntityid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for TestEntity associated with Corporate Strategy Objective." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_TestEntityid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="TestEntity" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>UseCollectionName</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <NavPaneOrder>10000</NavPaneOrder>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_corporatestrategyobjective_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>CA_corporatestrategyobjective</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>Restrict</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_csoid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for Corporate Strategy Objective associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_csoid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="CSO" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>UseCollectionName</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <NavPaneOrder>10000</NavPaneOrder>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_csocapTestEntitytype_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>CA_csocapTestEntitytype</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>Restrict</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_TestEntitytype1id</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for CSO/CAP TestEntity Type associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_TestEntitytype1id" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="TestEntity Type" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_csocapTestEntitytype2_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>CA_csocapTestEntitytype</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>Restrict</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_TestEntitytype2id</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for CSO/CAP TestEntity Type associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_TestEntitytype2id" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="TestEntity Type" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_csocapTestEntitytype3_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>CA_csocapTestEntitytype</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>Restrict</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_TestEntitytype3id</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for CSO/CAP TestEntity Type associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_TestEntitytype3id" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="TestEntity Type" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_TestEntity_ca_documentation">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_documentation</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_TestEntityid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for TestEntity associated with Documentation." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_TestEntityid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="TestEntity" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_documentation_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>CA_documentation</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>Restrict</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_partnershipaggrementid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for Documentation associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_partnershipaggrementid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Partnership Agrement" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_TestEntity_ca_grant">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_grant</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>Restrict</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_TestEntityid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for TestEntity associated with Grant." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_TestEntityid" requiredlevel="required" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="TestEntity" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_incomesource_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>CA_incomesource</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_incomesourceforgrantid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for Income Source associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_incomesourceforgrantid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Income Source for Grant" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_location_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>CA_location</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_primarylocationid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Primary TestEntity location" languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_primarylocationid" requiredlevel="required" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Primary Location" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>UseCollectionName</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <NavPaneOrder>10000</NavPaneOrder>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_location2_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>CA_location</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_location2id</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for Location associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_location2id" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Location 2" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>UseCollectionName</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <NavPaneOrder>10000</NavPaneOrder>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_location3_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>CA_location</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_location3id</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for Location associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_location3id" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Location 3" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>UseCollectionName</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <NavPaneOrder>10000</NavPaneOrder>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_TestEntity_ca_monitoringassessment">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>Ca_monitoringassessment</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_TestEntityid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for TestEntity associated with Monitoring Assessment." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_TestEntityid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="TestEntity" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>UseCollectionName</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <NavPaneOrder>10000</NavPaneOrder>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_monitoringassessment_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>Ca_monitoringassessment</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_lastmonitoringassessmentid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for Monitoring Assessment associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_lastmonitoringassessmentid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Last Monitoring Assessment" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_package_ca_TestEntity">
      <EntityRelationshipType>ManyToMany</EntityRelationshipType>
      <FirstEntityName>Ca_package</FirstEntityName>
      <SecondEntityName>CA_TestEntity</SecondEntityName>
      <IntersectEntityName>ca_ca_package_ca_TestEntity</IntersectEntityName>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>UseCollectionName</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <NavPaneOrder>10000</NavPaneOrder>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
          <AssociationRoleOrdinal>1</AssociationRoleOrdinal>
        </EntityRelationshipRole>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>UseCollectionName</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <NavPaneOrder>10000</NavPaneOrder>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
          <AssociationRoleOrdinal>2</AssociationRoleOrdinal>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_programme_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>Ca_programme</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_programmeid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for Programme associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_programmeid" requiredlevel="required" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Programme" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>UseCollectionName</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <NavPaneOrder>10000</NavPaneOrder>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_TestEntity_ca_programmeobjective">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>Ca_programmeobjective</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_TestEntityid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for TestEntity associated with Programme Objective." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_TestEntityid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="TestEntity" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_programmeobjective_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>Ca_programmeobjective</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_programmeobjectiveid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for Programme Objective associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_programmeobjectiveid" requiredlevel="recommended" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Programme Objective" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>UseCollectionName</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <NavPaneOrder>10000</NavPaneOrder>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_systemuserseconder_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>SystemUser</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_TestEntityseconderid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for User associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_TestEntityseconderid" requiredlevel="none" imemode="auto" lookupclass="SystemUsers" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="TestEntity Seconder" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_systemuserlinemanager_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>SystemUser</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_linemanagerid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for User associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_linemanagerid" requiredlevel="none" imemode="auto" lookupclass="SystemUsers" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Line Manager" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_transfercurrency_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>TransactionCurrency</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_transfercurrencyid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for Currency associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_transfercurrencyid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Transfer Currency" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_approvalcurrency_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>TransactionCurrency</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_approvalcurrencyid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for Currency associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_approvalcurrencyid" requiredlevel="required" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Approval Currency" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_scaleupcurrency_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>TransactionCurrency</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_scaleupcurrencyid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for Currency associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_scaleupcurrencyid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Scale Up Currency" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_primecurrency_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>TransactionCurrency</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_primecurrencyid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for Currency associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_primecurrencyid" requiredlevel="required" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Prime Currency" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_TestEntity_ca_TestEntitytargetgroup">
      <EntityRelationshipType>ManyToMany</EntityRelationshipType>
      <FirstEntityName>CA_TestEntity</FirstEntityName>
      <SecondEntityName>CA_TestEntitytargetgroup</SecondEntityName>
      <IntersectEntityName>ca_ca_TestEntity_ca_TestEntitytargetgroup</IntersectEntityName>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>UseLabel</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <NavPaneOrder>10000</NavPaneOrder>
          <CustomLabels>
            <CustomLabel description="Secondary Target Groups" languagecode="1033" />
          </CustomLabels>
          <AssociationRoleOrdinal>1</AssociationRoleOrdinal>
        </EntityRelationshipRole>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>UseCollectionName</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <NavPaneOrder>10000</NavPaneOrder>
          <CustomLabels>
            <CustomLabel description="Secindary Target Groups" languagecode="1033" />
          </CustomLabels>
          <AssociationRoleOrdinal>2</AssociationRoleOrdinal>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_TestEntitytargetgroup_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntitytargetgroup</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>Restrict</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_primarytargetgroupid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for TestEntity Target Group associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_primarytargetgroupid" requiredlevel="recommended" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Primary Target Group" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>UseCollectionName</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <NavPaneOrder>10000</NavPaneOrder>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_systemuserTestEntitymanager_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>SystemUser</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_TestEntitymanagerid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for User associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_TestEntitymanagerid" requiredlevel="none" imemode="auto" lookupclass="SystemUsers" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="TestEntity Manager" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_TestEntity_ca_qualityandrisk">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_qualityandrisk</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_TestEntityid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for TestEntity associated with Quality And Risk." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_TestEntityid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="TestEntity" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>UseCollectionName</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <NavPaneOrder>10000</NavPaneOrder>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_qualityandrisk_ca_TestEntity">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_TestEntity</ReferencingEntityName>
      <ReferencedEntityName>CA_qualityandrisk</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_lastqrrecordid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for Quality And Risk associated with TestEntity." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_lastqrrecordid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="Last Q&amp;R Record" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
    <EntityRelationship Name="ca_ca_TestEntity_ca_transfer">
      <EntityRelationshipType>OneToMany</EntityRelationshipType>
      <ReferencingEntityName>CA_transfer</ReferencingEntityName>
      <ReferencedEntityName>CA_TestEntity</ReferencedEntityName>
      <CascadeAssign>NoCascade</CascadeAssign>
      <CascadeDelete>RemoveLink</CascadeDelete>
      <CascadeReparent>NoCascade</CascadeReparent>
      <CascadeShare>NoCascade</CascadeShare>
      <CascadeUnshare>NoCascade</CascadeUnshare>
      <ReferencingAttributeName>ca_TestEntityid</ReferencingAttributeName>
      <RelationshipDescription>
        <Descriptions>
          <Description description="Unique identifier for TestEntity associated with Transfer." languagecode="1033" />
        </Descriptions>
      </RelationshipDescription>
      <field name="ca_TestEntityid" requiredlevel="none" imemode="auto" lookupstyle="single" lookupbrowse="0">
        <displaynames>
          <displayname description="TestEntity" languagecode="1033" />
        </displaynames>
      </field>
      <EntityRelationshipRoles>
        <EntityRelationshipRole>
          <NavPaneDisplayOption>DoNotDisplay</NavPaneDisplayOption>
          <NavPaneArea>Details</NavPaneArea>
          <CustomLabels>
            <CustomLabel description="" languagecode="1033" />
          </CustomLabels>
        </EntityRelationshipRole>
      </EntityRelationshipRoles>
    </EntityRelationship>
  </EntityRelationships>
  <Languages>
    <Language>1033</Language>
  </Languages>
</ImportExportXml>